Skip to content

Commit

Permalink
test: provider properties
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunato committed May 31, 2024
1 parent 2a33765 commit 81739f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/units/test_http_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ def mock_search_result(self):
"sensorMode": None,
"quicklook": None,
"storageStatus": ONLINE_STATUS,
"providerProperty": "foo",
},
"id": "578f1768-e66e-5b86-9363-b19f8931cc7b",
"type": "Feature",
Expand Down Expand Up @@ -826,6 +827,9 @@ def test_date_search_from_catalog_items_with_provider(self):
self_link = link
self.assertIsNotNone(self_link)
self.assertIn("?provider=peps", self_link["href"])
self.assertEqual(
results["features"][0]["properties"]["peps:providerProperty"], "foo"
)

def test_search_item_id_from_catalog(self):
"""Search by id through eodag server /catalog endpoint should return a valid response"""
Expand Down

0 comments on commit 81739f5

Please sign in to comment.