diff --git a/geotrek/trekking/tests/test_parsers.py b/geotrek/trekking/tests/test_parsers.py index cd60a1dc5a..afc5f16361 100644 --- a/geotrek/trekking/tests/test_parsers.py +++ b/geotrek/trekking/tests/test_parsers.py @@ -1804,8 +1804,11 @@ def test_create_basic_trek(self): self.assertEqual(Trek.objects.count(), 1) trek = Trek.objects.get() self.assertEqual(trek.eid, "be5851a9-87d4-467c-ba95-16d474480976") - self.assertEqual(trek.geom.ewkt, "SRID=2154;LINESTRING (973032.3522426573 6409775.480393637, 973028.3125000017 6409771.999999961)") - self.assertEqual(trek.parking_location.ewkt, "SRID=2154;POINT (973039.0930175973 6409777.794921431)") + self.assertEqual(trek.geom.srid, settings.SRID) + self.assertEqual(trek.geom.geom_type, 'LineString') + self.assertEqual(trek.geom.num_coords, 2) + self.assertEqual(trek.parking_location.srid, settings.SRID) + self.assertEqual(trek.parking_location.geom_type, 'Point') self.assertEqual(trek.description, "Instructions 1\n\nhttps://test.com") # TODO: # - check attachments and their licenses