apps.ready() doesn't get called
Closed this issue · 2 comments
this issues is a follow up to #204
I am using pytest-django to test, but the apps.ready() are not being called. It is where I add signals to the ORM models and so my tests are breaking.
If I start the service using manage.py, the apps.ready does get called, but if I run pytest it does not work.
The solution in #204 does not help. I am using the latest pytest-django 4.8.0 and and Django 5.0.4 which no longer requires default_app_config (the solution in #204).
when I print out
django.apps.apps.ready
in
pytest-django/pytest_django/plugin.py
Line 223 in 11f613d
The apps are already ready. But the apps.ready() was not called.
I am really confused what I am doing wrong. Thank you
nevermind, it was simply not printing output because of logging setup
Thank you for reporting back your finding and closing the issue. Test setups are complex, it’s easy to miss something like why output doesn't display!