Closed 1ace closed 2 years ago
Apologies, I think I misdiagnosed the issue; closing it for now, I'll re-open with additional details in case it turns out the breakage is still related to pytest-django
:)
For anyone else who might stumble upon this, this issue was that I had DJANGO_SETTINGS_MODULE
defined globally; setting it to an empty string (because annoyingly I can't unset variables in the GitLab CI) fixed the issue :)
I have tests that have nothing to do with django, and tests in the django folder.
Installing
pytest-django
breaks runningpytest
in the non-django tests folders:Is there an environment variable or something that I can set to only load
pytest-django
when its assumptions happen to match reality?