diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-10-11 10:58:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-11 10:58:10 +0200 |
| commit | 6e369f36f2def929525e524f621eead4b041d1cf (patch) | |
| tree | 3de7dd7f38275abd99b8f521b6b17076e84f2c94 | |
| parent | d21ab70223dcbdc5a2603a88945147f2f780deee (diff) | |
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.
| -rw-r--r-- | tests/gis_tests/geoapp/test_functions.py | 4 |
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]}' ), ) |
