Skip to content

Commit 96c6f03

Browse files
andystaplesberndverst
authored andcommitted
test: simplify dispatch recovery parameter IDs
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 974213a5-9101-41b4-9bde-aa86a72f25e1
1 parent bc6a5e1 commit 96c6f03

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tests/durabletask/test_orchestration_dispatch_recovery.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def _control_flow_errors() -> list[BaseException]:
200200
return errors
201201

202202

203-
@pytest.mark.parametrize("error", _control_flow_errors(), ids=lambda error: str(error))
203+
@pytest.mark.parametrize("error", _control_flow_errors(), ids=str)
204204
@pytest.mark.parametrize("during_teardown", [False, True])
205205
def test_control_flow_propagates_after_same_token_abandonment(
206206
error: BaseException, during_teardown: bool):
@@ -299,7 +299,7 @@ def test_recovery_process_control_is_not_swallowed(monkeypatch: pytest.MonkeyPat
299299
reset.assert_called_once()
300300

301301

302-
@pytest.mark.parametrize("reset_error", _control_flow_errors(), ids=lambda error: str(error))
302+
@pytest.mark.parametrize("reset_error", _control_flow_errors(), ids=str)
303303
def test_reset_control_flow_is_not_hidden_by_ordinary_abandonment_error(
304304
reset_error: BaseException, monkeypatch: pytest.MonkeyPatch):
305305
with worker.TaskHubGrpcWorker(logger=LOGGER) as host:

0 commit comments

Comments
 (0)