summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2023-10-11 10:58:10 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-10-11 12:45:44 +0200
commitbcc6a8ee88ade98aa5ca9cb22b6646c85ef2dbc2 (patch)
tree24c27d68f233dc3df311ad22e63b5b68ab03d5d6
parent9454d4feb1e4395ede0652f72333ce324b0dd99b (diff)
[5.0.x] Refs #34882 -- Fixed GISFunctionsTests.test_asgeojson_option_0() test on Oracle.
This uses an example with the same precision for all databases. Follow up to 96e7a752b6c44a84e18d82d37524c1df64b32e12. Backport of 6e369f36f2def929525e524f621eead4b041d1cf from main
-rw-r--r--tests/gis_tests/geoapp/test_functions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gis_tests/geoapp/test_functions.py b/tests/gis_tests/geoapp/test_functions.py
index 777e17420e..047c7f9036 100644
--- a/tests/gis_tests/geoapp/test_functions.py
+++ b/tests/gis_tests/geoapp/test_functions.py
@@ -122,7 +122,7 @@ class GISFunctionsTests(FuncTestMixin, TestCase):
@skipUnlessDBFeature("has_AsGeoJSON_function")
def test_asgeojson_option_0(self):
p1 = Point(1, 1, srid=4326)
- p2 = Point(2, 2, srid=4326)
+ p2 = Point(-87.65018, 41.85039, srid=4326)
obj = ManyPointModel.objects.create(
point1=p1,
point2=p2,
@@ -134,7 +134,7 @@ class GISFunctionsTests(FuncTestMixin, TestCase):
.geojson,
# GeoJSON without CRS.
json.loads(
- '{"type":"Point","coordinates":[222638.98158655,222684.20850554]}'
+ '{"type":"Point","coordinates":[-9757173.40553877, 5138594.87034608]}'
),
)