Skip to content

Commit

Permalink
test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lpofredc committed Sep 20, 2023
1 parent 62529f0 commit 70d15bb
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions geotrek/sensitivity/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from django.test import TestCase
from django.test.utils import override_settings
from django.conf import settings
from django.contrib.gis.geos import GEOSGeometry

from geotrek.sensitivity.tests.factories import SensitiveAreaFactory, SpeciesFactory
from geotrek.trekking.tests.factories import TrekFactory
Expand Down Expand Up @@ -137,32 +136,6 @@ def test_is_public(self):
sensitive_area.published = False
self.assertFalse(sensitive_area.is_public())

def test_wgs84_geom(self):
"""Test geometry transform to SRID WGS84"""
sensitive_area = SensitiveAreaFactory.create(
geom="POLYGON(("
"700000 6600000, "
"700000 6600003, "
"700003 6600003, "
"700003 6600000, "
"700000 6600000"
"))"
)
self.assertGreater(
similar_string(
GEOSGeometry(
"SRID=4326;POLYGON (("
"3 46.49999999999994, 3 46.50002701349548, "
"3.000039118674989 46.50002701348879, "
"3.000039118655609 46.49999999999324, "
"3 46.49999999999994"
"))"
).wkt,
sensitive_area.wgs84_geom.wkt,
),
0.9,
)

@override_settings(SENSITIVE_AREA_INTERSECTION_MARGIN=0)
def test_trek_sensitive_area(self):
"""
Expand Down

0 comments on commit 70d15bb

Please sign in to comment.