Skip to content

Commit

Permalink
added match for response
Browse files Browse the repository at this point in the history
  • Loading branch information
ZohebShaikh committed Nov 21, 2024
1 parent ba3ff6e commit e649c2d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/system_tests/test_blueapi_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,8 @@ def test_cannot_access_endpoints(
client_without_auth: BlueapiClient, blueapi_client_get_methods: list[str]
):
for get_method in blueapi_client_get_methods:
with pytest.raises(BlueskyRemoteControlError) as exception:
with pytest.raises(BlueskyRemoteControlError, match=r"<Response \[401\]>"):
getattr(client_without_auth, get_method)()
assert str(exception.value) in "<Response [401]>"


def test_get_plans(client: BlueapiClient, expected_plans: PlanResponse):
Expand Down

0 comments on commit e649c2d

Please sign in to comment.