1
0
mirror of https://github.com/django/django.git synced 2025-04-16 21:34:37 +00:00

Added supports_expression_defaults check in DefaultTests.test_full_clean() test.

This commit is contained in:
Mariusz Felisiak 2025-04-06 09:40:12 +02:00 committed by GitHub
parent 12b771a1ec
commit d4a2809c2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -179,6 +179,7 @@ class DefaultTests(TestCase):
years = DBDefaultsFunction.objects.values_list("year", flat=True)
self.assertCountEqual(years, [2000, timezone.now().year])
@skipUnlessDBFeature("supports_expression_defaults")
def test_full_clean(self):
obj = DBArticle()
obj.full_clean()