Hi Philippe, On Tue, Apr 28, 2009 at 13:37 +0200, Philippe Fremy wrote: > 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.
do you have a setup_module()/teardown_module() pair that you import into all your tests? Do you essentially want to setup the test resource only once per test-run? cheers, holger > cheers, > > Philippe > > _______________________________________________ > py-dev mailing list > py-dev@codespeak.net > http://codespeak.net/mailman/listinfo/py-dev > -- Metaprogramming, Python, Testing: http://tetamap.wordpress.com Python, PyPy, pytest contracting: http://merlinux.eu _______________________________________________ py-dev mailing list py-dev@codespeak.net http://codespeak.net/mailman/listinfo/py-dev