summaryrefslogtreecommitdiff
path: root/tests/admin_checks
diff options
context:
space:
mode:
authorAdam Chainz <adam@adamj.eu>2016-07-27 11:10:24 +0100
committerTim Graham <timograham@gmail.com>2017-01-10 07:02:13 -0500
commit9daf8c43bdfa9f6418f6f47d202055b97244debe (patch)
tree1cd636206d52ce46f0919cd0b490f99fa7ca72f5 /tests/admin_checks
parentd57ecf40ebad564fafa36825b17b6c15f13cfc01 (diff)
downloaddjango-9daf8c43bdfa9f6418f6f47d202055b97244debe.tar.gz
Fixed #26961 -- Made admin checks run when DEBUG=False.
Diffstat (limited to 'tests/admin_checks')
-rw-r--r--tests/admin_checks/tests.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/admin_checks/tests.py b/tests/admin_checks/tests.py
index d243a56640..3d629077c5 100644
--- a/tests/admin_checks/tests.py
+++ b/tests/admin_checks/tests.py
@@ -45,7 +45,6 @@ class MyAdmin(admin.ModelAdmin):
)
class SystemChecksTestCase(SimpleTestCase):
- @override_settings(DEBUG=True)
def test_checks_are_performed(self):
admin.site.register(Song, MyAdmin)
try:
@@ -93,7 +92,6 @@ class SystemChecksTestCase(SimpleTestCase):
]
self.assertEqual(errors, expected)
- @override_settings(DEBUG=True)
def test_custom_adminsite(self):
class CustomAdminSite(admin.AdminSite):
pass
@@ -107,7 +105,6 @@ class SystemChecksTestCase(SimpleTestCase):
finally:
custom_site.unregister(Song)
- @override_settings(DEBUG=True)
def test_allows_checks_relying_on_other_modeladmins(self):
class MyBookAdmin(admin.ModelAdmin):
def check(self, **kwargs):