Skip to content

Commit 963e046

Browse files
committed
Remove assertion in django_settings_is_configured
django.conf.settings.configured is not necessarily True, in case DSM wasn't set during `pytest_load_initial_conftests`, but gets set in the project's conftest (via `pytest_configure`). Fixes pytest-dev#146
1 parent 51050de commit 963e046

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pytest_django/lazy_django.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ def django_settings_is_configured():
2222

2323
# If DJANGO_SETTINGS_MODULE is defined at this point, Django is assumed to
2424
# always be loaded.
25-
from django.conf import settings
26-
assert settings.configured is True
2725
return True
2826

2927

0 commit comments

Comments
 (0)