From 81739f510d782cb6dbad170b0f633602138df2b1 Mon Sep 17 00:00:00 2001 From: Sylvain Brunato Date: Fri, 31 May 2024 12:58:58 +0200 Subject: [PATCH] test: provider properties --- tests/units/test_http_server.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/units/test_http_server.py b/tests/units/test_http_server.py index 1bf024c5aa..8b1d40f172 100644 --- a/tests/units/test_http_server.py +++ b/tests/units/test_http_server.py @@ -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", @@ -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"""