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 433cd72 commit 14f120e
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 @@ -588,6 +588,7 @@ def test_warnings(self):
)

with warnings.catch_warnings(record=True) as w:
warnings.simplefilter("ignore", category=DeprecationWarning)
warnings.simplefilter("always")
Product.get("product_id", client=self.client)

Expand Down Expand Up @@ -646,6 +647,7 @@ def test_bad_warnings(self):
)

with warnings.catch_warnings(record=True) as w:
warnings.simplefilter("ignore", category=DeprecationWarning)
warnings.simplefilter("always")
p = Product.get("product_id", client=self.client)
assert isinstance(p, Product)
Expand Down

0 comments on commit 14f120e

Please sign in to comment.