From 7551b8e0b3b4fef7b73d2e5533beadcfadd35d40 Mon Sep 17 00:00:00 2001 From: Sylvain Brunato Date: Fri, 10 Jan 2025 12:20:49 +0100 Subject: [PATCH] test: skip missing key in filter_property --- tests/integration/test_search_stac_static.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/integration/test_search_stac_static.py b/tests/integration/test_search_stac_static.py index 21e7a3c06..dfc1fef86 100644 --- a/tests/integration/test_search_stac_static.py +++ b/tests/integration/test_search_stac_static.py @@ -382,6 +382,11 @@ def test_search_stac_static_crunch_filter_property(self): ) self.assertEqual(len(filtered_items), 1) + with self.assertLogs(level="WARNING") as cm: + filtered_items = items.filter_property(foo="bar") + self.assertIn("foo not found in EOProduct", str(cm.output)) + self.assertEqual(len(filtered_items), 0) + @mock.patch( "eodag.api.core.EODataAccessGateway.fetch_product_types_list", autospec=True )