From 433cd728e15ef50bfc619b13a7019eb97c388be5 Mon Sep 17 00:00:00 2001 From: "Stephen C. Pope" Date: Tue, 8 Oct 2024 11:59:29 -0600 Subject: [PATCH] Update test_product.py --- descarteslabs/core/catalog/tests/test_product.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/descarteslabs/core/catalog/tests/test_product.py b/descarteslabs/core/catalog/tests/test_product.py index 648a6c03..d351d8a2 100644 --- a/descarteslabs/core/catalog/tests/test_product.py +++ b/descarteslabs/core/catalog/tests/test_product.py @@ -592,6 +592,8 @@ def test_warnings(self): Product.get("product_id", client=self.client) print(f"w={w}") + for ww in w: + print(f"{ww.category} {ww.message}") assert w[0].category is FutureWarning assert str(w[0].message) == "This is a test of a FutureWarning" assert w[1].category is UserWarning @@ -650,6 +652,8 @@ def test_bad_warnings(self): assert p.id == "product_id" print(f"w={w}") + for ww in w: + print(f"{ww.category} {ww.message}") assert len(w) == 0 @responses.activate