[py-dev] @pytest.setup as shortcut for @pytest.fixture(autouse=True)?

holger krekel holger at merlinux.eu
Fri Oct 26 22:12:03 CEST 2012


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




More information about the Pytest-dev mailing list