summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2023-06-30 10:18:04 +0200
committerGitHub <noreply@github.com>2023-06-30 10:18:04 +0200
commit7eeadc82c2f7d7a778e3bb43c34d642e6275dacf (patch)
tree5794b45c789356927a60597d0d2151a783991641
parent5820fc44854e421e4ebaaddb34d7109ff15e1148 (diff)
Fixed RelatedGeoModelTest.test_centroid_collect_filter().
-rw-r--r--tests/gis_tests/relatedapp/tests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/gis_tests/relatedapp/tests.py b/tests/gis_tests/relatedapp/tests.py
index 7fcd59b84f..7433fc3c15 100644
--- a/tests/gis_tests/relatedapp/tests.py
+++ b/tests/gis_tests/relatedapp/tests.py
@@ -345,7 +345,9 @@ class RelatedGeoModelTest(TestCase):
)
)
city = qs.get(name="Aurora")
- self.assertEqual(city.parcel_centroid.wkt, "POINT (3.2128 1.5)")
+ 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):