Skip to content

Commit

Permalink
Fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienJaussaudGeosys committed Apr 15, 2024
1 parent a0fdf9c commit e22f2bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions geosyspy/geosys.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,7 @@ def get_coordinates_by_pixel(raster):
[
"image.id",
"image.sensor",
"image.soilMaterial",
"image.spatialResolution",
"image.weather",
"crs",
]
]
Expand Down
4 changes: 2 additions & 2 deletions tests/test_int_geosys.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
4 changes: 2 additions & 2 deletions tests/test_unit_map_product_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))



0 comments on commit e22f2bd

Please sign in to comment.