You need to make sure your application appears in your settings.py INSTALLED_APPS before django.contrib.messages does.
App can't be tested because of conflit with django.contrib.messages
-
04-08-2022 - |
Frage
In my django project, I'm having trouble testing my homemade app named "messages". If I write a single test in messages/tests.py
and try to run it with python manage.py test messages
, it will perform 74 tests from, I guess, the django.contrib.messages
library.
How can I run my local app tests instead of the library one without renaming it? All other tests for my apps with other names run fine.
Lösung
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow