In Django 2.0, I have following project structure, which I can't change, no matter what:
grocery_store_website
manage.py
grocery_store # contains wsgi, settings,etc.
app1
app1
non-app-utils
__init__.py
helpers.py
serializers.py
model_mixins.py
tests
test_helpers.py # I want test runner to run these.
It turned out, I need to write unit tests for non-app-utils
. Mentioned directory is not a registered Django App and never will be. These tests must be located in tests
directory, located in non-app-utils
. How can I make Django's test runner to discover and run also tests from non-app-utils
directory?
If I run Django tests with directly specified path ./manage.py test utils.tests.test_helpers
, it works. However ./manage.py test
does not. Any ideas how to go on?