From 575e2d6747efb8a9ea2f031aad31bd46ac84997d Mon Sep 17 00:00:00 2001 From: Luna Date: Wed, 27 May 2026 13:22:50 +0000 Subject: [PATCH] Fix backend test mocks for subprocess timeout kwarg --- backend/tests/test_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/tests/test_server.py b/backend/tests/test_server.py index 1e95638..5eb7fe1 100644 --- a/backend/tests/test_server.py +++ b/backend/tests/test_server.py @@ -21,7 +21,7 @@ def test_validate_output_format_rejects_unknown() -> None: def test_transcriptions_returns_generated_artifact(monkeypatch, tmp_path: Path) -> None: - def fake_run(command: list[str], check: bool, capture_output: bool, text: bool): + def fake_run(command: list[str], check: bool, capture_output: bool, text: bool, timeout: int): output_dir = Path(command[command.index("--output_dir") + 1]) (output_dir / "clip.txt").write_text("hello world", encoding="utf-8") @@ -46,7 +46,7 @@ def test_transcriptions_returns_generated_artifact(monkeypatch, tmp_path: Path) def test_transcriptions_maps_subprocess_failure(monkeypatch) -> None: - def fake_run(command: list[str], check: bool, capture_output: bool, text: bool): + def fake_run(command: list[str], check: bool, capture_output: bool, text: bool, timeout: int): class Result: returncode = 1 stdout = ""