Skip to content

Commit

Permalink
Update test_product.py
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencpope authored Oct 8, 2024
1 parent fc1ebff commit 433cd72
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions descarteslabs/core/catalog/tests/test_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 433cd72

Please sign in to comment.