[New-bugs-announce] [issue18198] unittest discover should provide a way to define discovery at package level
vila
report at bugs.python.org
Wed Jun 12 10:01:19 CEST 2013
New submission from vila:
While most test suites are a tree with test_*.py files, there are cases where being able to define the discovery for a subtree in the package __init__.py file comes handy.
A poc implementation is available at
http://bazaar.launchpad.net/~canonical-isd-qa/selenium-simple-test/trunk/view/head:/src/sst/tests/test_loader.py
http://bazaar.launchpad.net/~canonical-isd-qa/selenium-simple-test/trunk/view/head:/src/sst/loader.py
It allows test writers to define their own discovery when needed (including a specific edge case for the project mentioned above: test scripts that should not be imported at load time).
It also addresses http://bugs.python.org/issue16662
----------
messages: 191015
nosy: vila
priority: normal
severity: normal
status: open
title: unittest discover should provide a way to define discovery at package level
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18198>
_______________________________________
More information about the New-bugs-announce
mailing list