[Grok-dev] All z3c.testsetup tests in a directory called "tests"
peter at fry-it.com
Fri Jun 6 10:17:46 EDT 2008
I've placed all my unit tests in a folder called "tests" so it
basically looks something like this::
tests/app.py (containing the correct marker)
Running z3c.testsetup with ./bin/test doesn't find them!
If I rename "tests" to "unit_tests" ./bin/test finds all the tests.
If the directory is called "tests" I get:
AttributeError: 'module' object has no attribute 'test_suite'
Is there a reason for this? I kind of like putting python unit tests
in a directory called "tests".
PS. For the record, my tests.py contains this:
test_suite = z3c.testsetup.register_all_tests('amodulename')
More information about the Grok-dev