Skip to content

Commit

Permalink
test: skip missing key in filter_property
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunato committed Jan 10, 2025
1 parent 6643e6d commit 7551b8e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/integration/test_search_stac_static.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit 7551b8e

Please sign in to comment.