From e22f2bdbef0372054ebb158522b37d0acfbb38d3 Mon Sep 17 00:00:00 2001 From: ajd Date: Mon, 15 Apr 2024 14:37:33 +0200 Subject: [PATCH] Fixed unit tests --- geosyspy/geosys.py | 2 -- tests/test_int_geosys.py | 4 ++-- tests/test_unit_map_product_service.py | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/geosyspy/geosys.py b/geosyspy/geosys.py index bf90940..f40052f 100644 --- a/geosyspy/geosys.py +++ b/geosyspy/geosys.py @@ -325,9 +325,7 @@ def get_coordinates_by_pixel(raster): [ "image.id", "image.sensor", - "image.soilMaterial", "image.spatialResolution", - "image.weather", "crs", ] ] diff --git a/tests/test_int_geosys.py b/tests/test_int_geosys.py index 35dc0a7..674c0e1 100644 --- a/tests/test_int_geosys.py +++ b/tests/test_int_geosys.py @@ -88,8 +88,8 @@ def test_get_satellite_coverage_image_references(self): collections=[SatelliteImageryCollection.SENTINEL_2, SatelliteImageryCollection.LANDSAT_8, SatelliteImageryCollection.LANDSAT_9]) - assert {"coverageType", "image.id", "image.availableBands", "image.sensor", "image.soilMaterial", - "image.spatialResolution", "image.weather", "image.date", "seasonField.id"}.issubset(set(info.columns)) + assert {"coverageType", "image.id", "image.availableBands", "image.sensor", + "image.spatialResolution", "image.date", "seasonField.id"}.issubset(set(info.columns)) assert len(info) == len(images_references) for i, image_info in info.iterrows(): diff --git a/tests/test_unit_map_product_service.py b/tests/test_unit_map_product_service.py index 357d3bd..bab915e 100644 --- a/tests/test_unit_map_product_service.py +++ b/tests/test_unit_map_product_service.py @@ -30,8 +30,8 @@ def test_get_satellite_coverage(self, get_response): "fakeSeasonFieldId", start_date, end_date, "NDVI", [SatelliteImageryCollection.SENTINEL_2] ) - assert {"coverageType", "image.id", "image.availableBands", "image.sensor", "image.soilMaterial", - "image.spatialResolution", "image.weather", "image.date", "seasonField.id"}.issubset(set(info.columns)) + assert {"coverageType", "image.id", "image.availableBands", "image.sensor", + "image.spatialResolution", "image.date", "seasonField.id"}.issubset(set(info.columns))