summaryrefslogtreecommitdiff
path: root/tests/check_framework
diff options
context:
space:
mode:
Diffstat (limited to 'tests/check_framework')
-rw-r--r--tests/check_framework/test_model_checks.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/check_framework/test_model_checks.py b/tests/check_framework/test_model_checks.py
index c26cf53903..90af4c9489 100644
--- a/tests/check_framework/test_model_checks.py
+++ b/tests/check_framework/test_model_checks.py
@@ -403,6 +403,13 @@ class ModelDefaultAutoFieldTests(SimpleTestCase):
self.assertEqual(checks.run_checks(app_configs=self.apps.get_app_configs()), [])
+ def test_skipped_on_model_with_invalid_app_label(self):
+ class Model(models.Model):
+ class Meta:
+ app_label = 'invalid_app_label'
+
+ self.assertEqual(Model.check(), [])
+
def test_skipped_on_abstract_model(self):
class Abstract(models.Model):
class Meta: