Skip to content

Commit

Permalink
Tests to be ignored if geopandas not available.
Browse files Browse the repository at this point in the history
  • Loading branch information
petebunting committed Dec 22, 2022
1 parent c8c5746 commit 8e4a7f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python_tests/test_vectorgeoms.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,7 @@ def test_get_poly_hole_area():
assert (len(areas) == 1) and (abs(areas[0] - 524701) < 1)


@pytest.mark.skipif(GEOPANDAS_NOT_AVAIL, reason="geopandas dependency not available")
def test_rm_polys_area_lessthan(tmp_path):
import rsgislib.vectorgeoms

Expand All @@ -591,6 +592,7 @@ def test_rm_polys_area_lessthan(tmp_path):
assert os.path.exists(out_vec_file)


@pytest.mark.skipif(GEOPANDAS_NOT_AVAIL, reason="geopandas dependency not available")
def test_rm_polys_area_greatthan(tmp_path):
import rsgislib.vectorgeoms

Expand Down

0 comments on commit 8e4a7f1

Please sign in to comment.