Skip to content

Commit 261a792

Browse files
committed
fix deprecation warning test
1 parent c63c341 commit 261a792

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/posit/connect/test_hooks.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,8 @@ def test_deprecation_warning():
7777
)
7878
c = Client("https://connect.example", "12345")
7979

80-
with pytest.warns(DeprecationWarning):
80+
with pytest.warns(
81+
DeprecationWarning,
82+
match="https://connect.example/__api__/v0 is deprecated and will be removed in a future version of Connect. Please upgrade `posit-sdk` in order to use the new APIs.",
83+
):
8184
c.get("v0")

0 commit comments

Comments
 (0)