Skip to content

Commit da75463

Browse files
adamtheturtleclaude
andcommitted
Use keyword argument for pytest.raises
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b4ecf17 commit da75463

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/test_query.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@ def test_custom_base_url_with_path_prefix(
207207
base_vwq_url="http://example.com/prefix",
208208
)
209209

210-
with pytest.raises(requests.exceptions.ConnectionError):
210+
with pytest.raises(
211+
expected_exception=requests.exceptions.ConnectionError,
212+
):
211213
cloud_reco_client.query(image=image)
212214

213215

tests/test_vws.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,9 @@ def test_custom_base_url_with_path_prefix() -> None:
261261
base_vws_url="http://example.com/prefix",
262262
)
263263

264-
with pytest.raises(requests.exceptions.ConnectionError):
264+
with pytest.raises(
265+
expected_exception=requests.exceptions.ConnectionError,
266+
):
265267
vws_client.list_targets()
266268

267269

0 commit comments

Comments
 (0)