Ticket #32367: tests-32367.diff

File tests-32367.diff, 771 bytes (added by Mariusz Felisiak, 4 years ago)

Regression test.

  • tests/check_framework/test_model_checks.py

    diff --git a/tests/check_framework/test_model_checks.py b/tests/check_framework/test_model_checks.py
    index d4342ada07..1c96e8d145 100644
    a b class ModelDefaultAutoFieldTests(SimpleTestCase):  
    395395            ),
    396396        ])
    397397
     398    def test_inherited__pk(self):
     399        class Parent(models.Model):
     400            id = models.AutoField(primary_key=True)
     401
     402        class Child(models.Model):
     403            pass
     404
     405        self.assertEqual(checks.run_checks(app_configs=self.apps.get_app_configs()), [])
     406
    398407    @override_settings(DEFAULT_AUTO_FIELD='django.db.models.BigAutoField')
    399408    def test_default_auto_field_setting(self):
    400409        class Model(models.Model):
Back to Top