Hi Holger, i think just having the name setup will make people wonder about the teardown again
if i correctly recall the name setup did cause people to misunderstand already (expecting a teardown of some kind) Unfortunately i cant think of a fit short name. Names like requirement and prerequisite come to mind, but those are longer and don't seem to fit as well as setup i think in this case a confusing shortcut might be worse than having to type it explicitly -- Ronny On 10/26/2012 10:12 PM, holger krekel wrote: > Hi, > > I find myself providing examples with "autouse" fixtures and am now > wondering if to introduce a @pytest.setup(...) decorator as a shortcut > for @pytest.fixture(..., autouse=True). Many people are used to the > concept of "setup" functions getting automatically called so i think > naming-wise it should fit nicely. It's slightly redundant but then > again a nice shortcut?! > > best, > holger > > _______________________________________________ > py-dev mailing list > py-dev@codespeak.net > http://codespeak.net/mailman/listinfo/py-dev _______________________________________________ py-dev mailing list py-dev@codespeak.net http://codespeak.net/mailman/listinfo/py-dev