From fcb159bcef48f192339c47f1f61153315d6c29de Mon Sep 17 00:00:00 2001 From: JeroenVerstraelen Date: Fri, 8 Nov 2024 09:57:10 +0100 Subject: [PATCH] disambiguate coordinates in test_run_udf_on_aggregate_spatial #323 --- tests/test_views_execute.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_views_execute.py b/tests/test_views_execute.py index b3f1c865..3acf9c84 100644 --- a/tests/test_views_execute.py +++ b/tests/test_views_execute.py @@ -1572,7 +1572,7 @@ def test_run_udf_on_list(api, udf_code): from geopandas import GeoDataFrame from shapely.geometry import Point def transform(data: UdfData) -> UdfData: - data.set_feature_collection_list([FeatureCollection("t", GeoDataFrame([{"geometry": Point(5.5, 51.5)}]))]) + data.set_feature_collection_list([FeatureCollection("t", GeoDataFrame([{"geometry": Point(0.0, 0.1)}]))]) return data """, ], @@ -1610,7 +1610,7 @@ def test_run_udf_on_aggregate_spatial(api, udf_code): resp = api.check_result(process_graph) assert resp.json["type"] == "FeatureCollection" assert len(resp.json["features"]) == 1 - assert resp.json["features"][0]["geometry"]["coordinates"] == [5.5, 51.5] + assert resp.json["features"][0]["geometry"]["coordinates"] == [0.0, 0.1] @pytest.mark.parametrize(["runtime", "version", "failure"], [