Skip to content

Commit

Permalink
test: check for geometries in coverage #821
Browse files Browse the repository at this point in the history
#821

Co-authored-by: Levi Szamek <[email protected]>
  • Loading branch information
mmerdes and Gigaszi committed Oct 10, 2024
1 parent b41c1cb commit 03bfb00
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/integrationtests/test_base_indicator.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,18 @@ def test_coverage(self):
for feature in coverage:
assert isinstance(feature, Feature)
assert feature.is_valid
assert feature["geometry"] is not None
coverage_default = asyncio.run(Minimal.coverage())
for feature in coverage_default:
assert isinstance(feature, Feature)
assert feature.is_valid
assert feature["geometry"] is not None
assert coverage_default == coverage
coverage_inversed = asyncio.run(Minimal.coverage(inverse=True))
for feature in coverage_inversed:
assert isinstance(feature, Feature)
assert feature.is_valid
assert feature["geometry"] is not None
assert coverage != coverage_inversed
assert coverage_default != coverage_inversed

Expand Down

0 comments on commit 03bfb00

Please sign in to comment.