[py-dev] py.test : setup / teardown at the directory level

Philippe Fremy phil at freehackers.org
Tue Apr 28 13:37:37 CEST 2009


Hi,

I was wondering if there is a possibility to have or emulate
setup/teardown method for an entire directory of tests ?

I have an expensive setup/teardown method, which I share through about
10 modules, each with about 20 tests. I would save time if I could do
the setup/teardown just for that directory.

cheers,

Philippe




More information about the Pytest-dev mailing list