Fix backend test mocks for subprocess timeout kwarg
All checks were successful
CI / Backend (push) Successful in 12s
CI / CLI (push) Successful in 10s

This commit is contained in:
2026-05-27 13:22:50 +00:00
parent 869a70b621
commit 575e2d6747

View File

@@ -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 = ""