From ca9880b98f2205c7928d997f95989b640b80001c Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Fri, 26 Jul 2024 09:36:55 +0200 Subject: [PATCH] [5.0.x] Refs #35625 -- Corrected CheckConstraint argument name in migrations.test_operations. --- tests/migrations/test_operations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/migrations/test_operations.py b/tests/migrations/test_operations.py index 23a9be2340..bc2fa02392 100644 --- a/tests/migrations/test_operations.py +++ b/tests/migrations/test_operations.py @@ -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=[