summaryrefslogtreecommitdiff
path: root/tests/check_framework
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-01-17 10:03:23 -0500
committerTim Graham <timograham@gmail.com>2017-01-17 20:52:05 -0500
commit98760ab0b2f1ce03234a5e6a52decd9f23d3994a (patch)
treed79cb80ac23b87fbb309232cfc79dd6e0b5edc69 /tests/check_framework
parent0bf3228eecca5658066b2eed47620fcbac9fd05c (diff)
Refs #25079 -- Removed obsolete system check for TEMPLATE_* settings.
Diffstat (limited to 'tests/check_framework')
-rw-r--r--tests/check_framework/tests_1_8_compatibility.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/tests/check_framework/tests_1_8_compatibility.py b/tests/check_framework/tests_1_8_compatibility.py
deleted file mode 100644
index d8601b1064..0000000000
--- a/tests/check_framework/tests_1_8_compatibility.py
+++ /dev/null
@@ -1,29 +0,0 @@
-from django.core.checks.compatibility.django_1_8_0 import \
- check_duplicate_template_settings
-from django.test import SimpleTestCase
-from django.test.utils import override_settings
-
-
-class CheckDuplicateTemplateSettingsTest(SimpleTestCase):
-
- def test_not_raised_if_no_templates_setting(self):
- self.assertEqual(check_duplicate_template_settings(None), [])
-
- @override_settings(
- TEMPLATES=[{'BACKEND': 'django.template.backends.django.DjangoTemplates'}],
- TEMPLATE_DIRS=['/path/to/dirs'],
- )
- def test_duplicate_setting(self):
- result = check_duplicate_template_settings(None)
- self.assertEqual(result[0].id, '1_8.W001')
-
- @override_settings(
- TEMPLATES=[{'BACKEND': 'django.template.backends.django.DjangoTemplates'}],
- TEMPLATE_DIRS=['/path/to/dirs'],
- TEMPLATE_DEBUG=True,
- )
- def test_multiple_duplicate_settings(self):
- result = check_duplicate_template_settings(None)
- self.assertEqual(len(result), 1)
- self.assertIn('TEMPLATE_DIRS', result[0].msg)
- self.assertIn('TEMPLATE_DEBUG', result[0].msg)