Skip to content

Commit

Permalink
disambiguate coordinates in test_run_udf_on_aggregate_spatial #323
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenVerstraelen committed Nov 8, 2024
1 parent 4bc09cd commit fcb159b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_views_execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
""",
],
Expand Down Expand Up @@ -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"], [
Expand Down

0 comments on commit fcb159b

Please sign in to comment.