Skip to content

Commit c66b967

Browse files
committed
fixup! fixup! fixup! Add django_debug_sql ini option
1 parent 2208722 commit c66b967

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

tests/test_db_debug.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@ def test_fail_with_db_queries():
2828
])
2929

3030
from pytest_django_test.db_helpers import _settings
31-
if _settings["ENGINE"] == "django.db.backends.sqlite3":
32-
result.stdout.fnmatch_lines([
33-
"*- Captured log teardown -*",
34-
"*PRAGMA foreign_key_check*",
35-
])
36-
else:
31+
# if _settings["ENGINE"] == "django.db.backends.sqlite3":
32+
# result.stdout.fnmatch_lines([
33+
# "*- Captured log teardown -*",
34+
# "*PRAGMA foreign_key_check*",
35+
# ])
36+
# else:
37+
if _settings["ENGINE"] == "django.db.backends.postgresql_psycopg2":
3738
result.stdout.fnmatch_lines([
3839
"*- Captured log teardown -*",
3940
"*SET CONSTRAINTS*",

0 commit comments

Comments
 (0)