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 c73e0e2 commit fc1ebff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions descarteslabs/core/catalog/tests/test_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@ def test_warnings(self):
warnings.simplefilter("always")
Product.get("product_id", client=self.client)

print(f"w={w}")
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 @@ -648,6 +649,7 @@ def test_bad_warnings(self):
assert isinstance(p, Product)
assert p.id == "product_id"

print(f"w={w}")
assert len(w) == 0

@responses.activate
Expand Down

0 comments on commit fc1ebff

Please sign in to comment.