From 800ee74e0f2a28552012d01283bc1569a8bc3ddd Mon Sep 17 00:00:00 2001 From: Mark Harris Date: Thu, 10 Oct 2024 06:12:56 +0000 Subject: [PATCH] Fix `test_from_geoseries_complex` to not depend on specific test fixture data values. --- .../cuspatial/cuspatial/tests/test_from_geopandas.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/python/cuspatial/cuspatial/tests/test_from_geopandas.py b/python/cuspatial/cuspatial/tests/test_from_geopandas.py index 1c33e216a..a02ab4a35 100644 --- a/python/cuspatial/cuspatial/tests/test_from_geopandas.py +++ b/python/cuspatial/cuspatial/tests/test_from_geopandas.py @@ -36,15 +36,8 @@ def test_dataframe_column_access(gs): def test_from_geoseries_complex(gs): cugs = cuspatial.from_geopandas(gs) - assert cugs.points.xy.sum() == 18 - assert cugs.lines.xy.sum() == 540 - assert cugs.multipoints.xy.sum() == 36 - assert cugs.polygons.xy.sum() == 7436 - assert cugs._column.polygons._column.base_children[0].sum() == 15 - assert ( - cugs._column.polygons._column.base_children[1].base_children[0].sum() - == 38 - ) + gs_roundtrip = cugs.to_geopandas() + gpd.testing.assert_geoseries_equal(gs_roundtrip, gs) def test_from_geopandas_point():