Message241981
There's a feature available via nose that might be nice to have in unittest: package-level setup and teardown functions.
Using nose, I can define a setUpModule() method in a test package's __init__.py and it will execute it during the test run. This is helpful for test packages that test related features and may have expensive setup/teardown routines. By having the test runner pick up setup/teardown methods in __init__.py, I can now incur this expense once rather than once per module.
I don't mind putting a patch together for this if others think this might be beneficial. |
|
Date |
User |
Action |
Args |
2015-04-24 20:25:56 | demian.brecht | set | recipients:
+ demian.brecht, rbcollins, ezio.melotti, michael.foord |
2015-04-24 20:25:56 | demian.brecht | set | messageid: <1429907156.24.0.517799178005.issue24055@psf.upfronthosting.co.za> |
2015-04-24 20:25:56 | demian.brecht | link | issue24055 messages |
2015-04-24 20:25:55 | demian.brecht | create | |
|