1
0
mirror of https://github.com/django/django.git synced 2024-12-27 03:25:58 +00:00

[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 96e7a752b6.
Backport of 6e369f36f2 from main
This commit is contained in:
Mariusz Felisiak 2023-10-11 10:58:10 +02:00
parent 9454d4feb1
commit bcc6a8ee88

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