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 96e7a752b6.
This commit is contained in:
Mariusz Felisiak 2023-10-11 10:58:10 +02:00 committed by GitHub
parent d21ab70223
commit 6e369f36f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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]}'
),
)