Skip to content

Commit

Permalink
Update: test profile
Browse files Browse the repository at this point in the history
  • Loading branch information
KarineGEO6 committed Jul 16, 2024
1 parent 24964fd commit cebb083
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions geosyspy/geosys.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,17 +313,17 @@ def download_image(self, polygon, image_id, indicator: str = "", path: str = "")
f.write(response_zipped_tiff.content)

def download_image_difference_map(
self, season_field_id, image_id_before, image_id_after
self, season_field_id, image_id_earliest, image_id_latest
):
"""Downloads a satellite image locally resulting of the difference between 2 images
Args:
season_field_id : season_field_id
image_id_before : the image reference from the satellite coverage before.
image_id_before : the image reference from the satellite coverage after.
image_id_earliest : the earliest image reference from the satellite coverage.
image_id_latest : the latest image reference from the satellite coverage.
"""
response = self.__map_product_service.get_zipped_tiff_difference_map(
season_field_id, image_id_before, image_id_after
season_field_id, image_id_earliest, image_id_latest
)

return response
Expand Down
11 changes: 6 additions & 5 deletions tests/test_int_geosys.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,10 +374,11 @@ def test_retrieve_sfid_from_geometry(self):
)
assert result is not None

def test_get_profile(self):
response = self.client.get_profile()
assert "id" in response
def test_get_profile_permissions(self):
response = self.client.get_available_permissions()
assert "permissions" in response

def test_get_profile_fields(self):
response = self.client.get_profile(fields="unitProfileUnitCategories")
def test_get_profile_area_conversion(self):
response = self.client.get_user_area_conversion_rate()
assert "unitProfileUnitCategories" in response

0 comments on commit cebb083

Please sign in to comment.