1
0
mirror of https://github.com/django/django.git synced 2025-01-09 09:55:57 +00:00

[5.0.x] Refs #35625 -- Corrected CheckConstraint argument name in migrations.test_operations.

This commit is contained in:
Mariusz Felisiak 2024-07-26 09:36:55 +02:00 committed by Sarah Boyce
parent e18601273a
commit ca9880b98f

View File

@ -4117,7 +4117,7 @@ class OperationTests(OperationTestBase):
]
for check, valid, invalid in checks:
with self.subTest(condition=check, valid=valid, invalid=invalid):
constraint = models.CheckConstraint(condition=check, name="constraint")
constraint = models.CheckConstraint(check=check, name="constraint")
operation = migrations.CreateModel(
"Author",
fields=[