This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vila
Recipients vila
Date 2013-06-12.08:01:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1371024079.21.0.947683959467.issue18198@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2013-06-12 08:01:19vilasetrecipients: + vila
2013-06-12 08:01:19vilasetmessageid: <1371024079.21.0.947683959467.issue18198@psf.upfronthosting.co.za>
2013-06-12 08:01:19vilalinkissue18198 messages
2013-06-12 08:01:18vilacreate