1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed RelatedGeoModelTest.test_centroid_collect_filter().

This commit is contained in:
Mariusz Felisiak
2023-06-30 10:18:04 +02:00
committed by GitHub
parent 5820fc4485
commit 7eeadc82c2

View File

@@ -345,7 +345,9 @@ class RelatedGeoModelTest(TestCase):
) )
) )
city = qs.get(name="Aurora") 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") @skipUnlessDBFeature("supports_make_line_aggr")
def test_make_line_filter(self): def test_make_line_filter(self):