Skip to content

Commit

Permalink
Fix test_from_geoseries_complex to not depend on specific test fixt…
Browse files Browse the repository at this point in the history
…ure data values.
  • Loading branch information
harrism committed Oct 10, 2024
1 parent 77a08a6 commit 800ee74
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions python/cuspatial/cuspatial/tests/test_from_geopandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 800ee74

Please sign in to comment.