mirror of
https://github.com/django/django.git
synced 2025-01-14 12:27:24 +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 to96e7a752b6
. Backport of6e369f36f2
from main
This commit is contained in:
parent
9454d4feb1
commit
bcc6a8ee88
@ -122,7 +122,7 @@ class GISFunctionsTests(FuncTestMixin, TestCase):
|
|||||||
@skipUnlessDBFeature("has_AsGeoJSON_function")
|
@skipUnlessDBFeature("has_AsGeoJSON_function")
|
||||||
def test_asgeojson_option_0(self):
|
def test_asgeojson_option_0(self):
|
||||||
p1 = Point(1, 1, srid=4326)
|
p1 = Point(1, 1, srid=4326)
|
||||||
p2 = Point(2, 2, srid=4326)
|
p2 = Point(-87.65018, 41.85039, srid=4326)
|
||||||
obj = ManyPointModel.objects.create(
|
obj = ManyPointModel.objects.create(
|
||||||
point1=p1,
|
point1=p1,
|
||||||
point2=p2,
|
point2=p2,
|
||||||
@ -134,7 +134,7 @@ class GISFunctionsTests(FuncTestMixin, TestCase):
|
|||||||
.geojson,
|
.geojson,
|
||||||
# GeoJSON without CRS.
|
# GeoJSON without CRS.
|
||||||
json.loads(
|
json.loads(
|
||||||
'{"type":"Point","coordinates":[222638.98158655,222684.20850554]}'
|
'{"type":"Point","coordinates":[-9757173.40553877, 5138594.87034608]}'
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user