summaryrefslogtreecommitdiff
path: root/tests/logging_tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2018-03-14 09:38:16 -0400
committerTim Graham <timograham@gmail.com>2018-03-14 10:24:34 -0400
commitfb8fd535c0f47cffb4da0c5900f3f66e1ec8d432 (patch)
tree8f2cab37f59658df4d514d41f722537126024608 /tests/logging_tests
parentfeb683c4c2c5ecfb61e4cb490c3e357450c0c0e8 (diff)
downloaddjango-fb8fd535c0f47cffb4da0c5900f3f66e1ec8d432.tar.gz
Moved SchemaLoggingTest to tests/schema.
Diffstat (limited to 'tests/logging_tests')
-rw-r--r--tests/logging_tests/tests.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/logging_tests/tests.py b/tests/logging_tests/tests.py
index d2eecb9450..8b2b093339 100644
--- a/tests/logging_tests/tests.py
+++ b/tests/logging_tests/tests.py
@@ -8,7 +8,6 @@ from django.conf import settings
from django.core import mail
from django.core.files.temp import NamedTemporaryFile
from django.core.management import color
-from django.db import connection
from django.test import RequestFactory, SimpleTestCase, override_settings
from django.test.utils import LoggingCaptureMixin, patch_logger
from django.utils.log import (
@@ -463,26 +462,6 @@ format=%(message)s
self.assertOutput(out, "System check identified no issues (0 silenced).")
-class SchemaLoggerTests(SimpleTestCase):
-
- def test_extra_args(self):
- editor = connection.schema_editor(collect_sql=True)
- sql = "SELECT * FROM foo WHERE id in (%s, %s)"
- params = [42, 1337]
- with patch_logger('django.db.backends.schema', 'debug', log_kwargs=True) as logger:
- editor.execute(sql, params)
- self.assertEqual(
- logger,
- [(
- 'SELECT * FROM foo WHERE id in (%s, %s); (params [42, 1337])',
- {'extra': {
- 'sql': 'SELECT * FROM foo WHERE id in (%s, %s)',
- 'params': [42, 1337],
- }},
- )]
- )
-
-
class LogFormattersTests(SimpleTestCase):
def test_server_formatter_styles(self):