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 <rep...@bugs.python.org>
<http://bugs.python.org/issue18198>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to