summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSergey Yurchenko <urchenko88@gmail.com>2016-08-02 22:19:01 +0300
committerTim Graham <timograham@gmail.com>2016-08-03 09:14:01 -0400
commit4e64e3bb6e96a50b057bc1144fba3efdee7dfc10 (patch)
tree067de408fe4ce1c22366eecf51a57fad404ce1ee /tests
parentf4b1f972dc69e519a78182353e43701a17bb43aa (diff)
Fixed #26997 -- Fixed checks crash with empty Meta.default_permissions.
Diffstat (limited to 'tests')
-rw-r--r--tests/auth_tests/test_checks.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auth_tests/test_checks.py b/tests/auth_tests/test_checks.py
index 962444fb60..8dca3159d1 100644
--- a/tests/auth_tests/test_checks.py
+++ b/tests/auth_tests/test_checks.py
@@ -195,3 +195,10 @@ class ModelsPermissionsChecksTests(SimpleTestCase):
id='auth.E008',
),
])
+
+ def test_empty_default_permissions(self):
+ class Checked(models.Model):
+ class Meta:
+ default_permissions = ()
+
+ self.assertEqual(checks.run_checks(self.apps.get_app_configs()), [])