From 03bfb0042710388c50c8bd2ac699d3ae0d65a1c5 Mon Sep 17 00:00:00 2001 From: Matthias Merdes Date: Thu, 10 Oct 2024 16:33:40 +0200 Subject: [PATCH] test: check for geometries in coverage #821 https://github.com/GIScience/ohsome-quality-api/issues/821 Co-authored-by: Levi Szamek --- tests/integrationtests/test_base_indicator.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/integrationtests/test_base_indicator.py b/tests/integrationtests/test_base_indicator.py index b045b448a..838c3eaf9 100644 --- a/tests/integrationtests/test_base_indicator.py +++ b/tests/integrationtests/test_base_indicator.py @@ -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