Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
submarcos committed Nov 25, 2024
1 parent 8432a88 commit 012011f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions geostore/tests/test_views/test_async_exports.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,9 @@ def side_effect_now():
with default_storage.open(path_export) as fp:
geojson = json.loads(fp.read())
feature = geojson['features'][0]['geometry']
feature_geom = GEOSGeometry(json.dumps(feature)).ewkt
self.assertEqual(feature_geom, 'SRID=4326;POINT (2.4609375 45.58328975600632)')
feature_geom = GEOSGeometry(json.dumps(feature))
self.assertAlmostEquals(feature_geom.x, 2.4609375)
self.assertAlmostEquals(feature_geom.y, 45.58328975600632)
self.assertEqual(status.HTTP_202_ACCEPTED, response.status_code)


Expand Down

0 comments on commit 012011f

Please sign in to comment.