From 2e833f265da389e04c0d350d07f9bfe44483e279 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 5 May 2019 08:07:35 +0200 Subject: [PATCH] fixup! fixup! fixup! fixup! fixup! Add django_debug_sql ini option --- pytest_django/fixtures.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pytest_django/fixtures.py b/pytest_django/fixtures.py index 66bb17623..6f8b9b072 100644 --- a/pytest_django/fixtures.py +++ b/pytest_django/fixtures.py @@ -102,13 +102,6 @@ def _restore_sql_debug_logging(request, oldlevel): logger.setLevel(oldlevel) -@pytest.fixture -def django_debug_sql(request): - oldlevel = _setup_sql_debug_logging() - yield - _restore_sql_debug_logging(request, oldlevel) - - @pytest.fixture(scope="session") def django_db_setup( request,