I have a test runner in a django package that is split across two directories, like so:
package/models.py
package/tests/__init__.py
package/tests/test_foo.py
package/contrib/bar/models.py
package/contrib/bar/tests/__init__.py
package/contrib/bar/tests/test_bar.py
In package/tests/__init__.py
I have this:
from package.contrib.tests import test_bar
And can run this just fine:
./manage.py test package.tests.test_bar
However, if I run either of these:
./manage.py test package
./manage.py test package.tests
test_bar
isn't run.
I've confirmed this by writing a test that will always fail and when run with either of the above calls the tests work.
Is there a way to import a test_suite into another test suite?