We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ade62a commit a9bb0c7Copy full SHA for a9bb0c7
pytest_django/plugin.py
@@ -559,6 +559,8 @@ def non_debugging_runtest(self) -> None:
559
try:
560
TestCaseFunction.runtest = non_debugging_runtest # type: ignore[method-assign]
561
562
+ # Don't set up the DB if the unittest does not require DB.
563
+ # The `databases` propery seems like the best indicator for that.
564
if request.cls.databases:
565
request.getfixturevalue("django_db_setup")
566
db_unblock = django_db_blocker.unblock()
0 commit comments