summaryrefslogtreecommitdiff
path: root/tests/gis_tests
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2024-02-26 00:14:26 -0500
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2024-03-01 07:15:32 +0100
commitdaf7d482dbaaa2604241a994c49f442fa15142c1 (patch)
tree65eae557dbe8694e03130cc17259a792792c95b7 /tests/gis_tests
parentf82c67aa217c8dd4320ef697b04a6da1681aa799 (diff)
Refs #35234 -- Deprecated CheckConstraint.check in favor of .condition.
Once the deprecation period ends CheckConstraint.check() can become the documented method that performs system checks for BaseConstraint subclasses.
Diffstat (limited to 'tests/gis_tests')
-rw-r--r--tests/gis_tests/gis_migrations/test_operations.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gis_tests/gis_migrations/test_operations.py b/tests/gis_tests/gis_migrations/test_operations.py
index d2ad67945b..e81d44caf2 100644
--- a/tests/gis_tests/gis_migrations/test_operations.py
+++ b/tests/gis_tests/gis_migrations/test_operations.py
@@ -270,7 +270,7 @@ class OperationTests(OperationTestCase):
Neighborhood = self.current_state.apps.get_model("gis", "Neighborhood")
poly = Polygon(((0, 0), (0, 1), (1, 1), (1, 0), (0, 0)))
constraint = models.CheckConstraint(
- check=models.Q(geom=poly),
+ condition=models.Q(geom=poly),
name="geom_within_constraint",
)
Neighborhood._meta.constraints = [constraint]