Skip to content

Commit

Permalink
use pytest match
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderegg committed Nov 19, 2024
1 parent 85875e8 commit 593719b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,10 @@ async def test_get_stack_status_missing(
mocked_dynamic_scheduler_events: None,
mock_docker_api: None,
) -> None:
with pytest.raises(DynamicSidecarNotFoundError) as execinfo:
with pytest.raises(
DynamicSidecarNotFoundError, match=rf"{scheduler_data.node_uuid} not found"
):
await scheduler.get_stack_status(scheduler_data.node_uuid)
assert f"{scheduler_data.node_uuid} not found" in str(execinfo)


async def test_get_stack_status_failing_sidecar(
Expand Down

0 comments on commit 593719b

Please sign in to comment.