From 3ab3420fce00ad2d5d12ab82461d3dcbdb3ec43e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 24 Jul 2025 12:15:36 +0000 Subject: [PATCH 1/2] Initial plan From 2e302933b4f4d0a7b1993b4ef1fbb17fb81489e2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 24 Jul 2025 12:24:03 +0000 Subject: [PATCH 2/2] Fix pytest warning by removing empty match parameter from pytest.raises Co-authored-by: llucax <1031485+llucax@users.noreply.github.com> --- tests/test_client.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/test_client.py b/tests/test_client.py index a4aceb8..e3a771b 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -28,13 +28,7 @@ def _assert_is_disconnected(client: BaseApiClient[StubT]) -> None: """Assert that the client is disconnected.""" assert not client.is_connected - with pytest.raises(ClientNotConnected, match=r"") as exc_info: - _ = client.channel - exc = exc_info.value - assert exc.server_url == _DEFAULT_SERVER_URL - assert exc.operation == "channel" - - with pytest.raises(ClientNotConnected, match=r"") as exc_info: + with pytest.raises(ClientNotConnected) as exc_info: _ = client.channel exc = exc_info.value assert exc.server_url == _DEFAULT_SERVER_URL