I've got a package - we'll be creative and call it package - and in there are api and dashboard packages, each with a tests module and various files filled with tests.
I'm using Django test runner and rather than having package.api.tests and package.dashboard.tests in my run configs, I'd like to just have package.tests and have that run all the tests in the packages below it.
I added a tests package to package and in the init tried a few things like from package.api.tests import * or using an all declaration but that didn't work.
Is there a way to make this happen? It's not the most annoying thing in the world, but it's a package that gets brought in to each project we do, and it would just be a bit simpler to have instructions of "Run package.tests", especially if we end up adding more packages beyond api and dashboard.
From the version of 1.6 in Django, you can:

Have test files matching the pattern test*.py. You can therefore have test files in the form of app/tests/test_models.py and app/tests/test_views.py.


You could also create a file named app/tests/test.py and include your
other files from there. The thing is that the runner will look for
files matching the pattern test*.py and execute them.

As you mentioned, from package.api.tests import * wouldn't have worked as the test functions could have been split into many different files. Therefore performing import * or using an all import approach is plausible in this case.
Running Python Tests from Subpackages