diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2025-06-18 17:51:08 +0200 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2025-06-25 08:58:22 +0200 |
| commit | 7091801e046dc85dba2238ed4eaf0b3f62bcfc7f (patch) | |
| tree | e788679445d7ff0c854806631a99646c6226dc1d /tests/gis_tests/relatedapp/tests.py | |
| parent | b2407e4d7d25e4a5839bb512cb2fdf71e9e30a21 (diff) | |
Fixed #36471 -- Added support for __coveredby GIS lookup and Collect, GeoHash, IsValid on MariaDB 12.0.1+.
Diffstat (limited to 'tests/gis_tests/relatedapp/tests.py')
| -rw-r--r-- | tests/gis_tests/relatedapp/tests.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/gis_tests/relatedapp/tests.py b/tests/gis_tests/relatedapp/tests.py index 303d357705..2db635b0c0 100644 --- a/tests/gis_tests/relatedapp/tests.py +++ b/tests/gis_tests/relatedapp/tests.py @@ -346,9 +346,12 @@ class RelatedGeoModelTest(TestCase): ) ) city = qs.get(name="Aurora") - self.assertIsInstance(city.parcel_centroid, Point) - self.assertAlmostEqual(city.parcel_centroid[0], 3.2128, 4) - self.assertAlmostEqual(city.parcel_centroid[1], 1.5, 4) + if connection.ops.mariadb: + self.assertIsNone(city.parcel_centroid) + else: + self.assertIsInstance(city.parcel_centroid, Point) + self.assertAlmostEqual(city.parcel_centroid[0], 3.2128, 4) + self.assertAlmostEqual(city.parcel_centroid[1], 1.5, 4) @skipUnlessDBFeature("supports_make_line_aggr") def test_make_line_filter(self): |
