Fix backend test mocks for subprocess timeout kwarg
This commit is contained in:
@@ -21,7 +21,7 @@ def test_validate_output_format_rejects_unknown() -> None:
|
|||||||
|
|
||||||
|
|
||||||
def test_transcriptions_returns_generated_artifact(monkeypatch, tmp_path: Path) -> 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 = Path(command[command.index("--output_dir") + 1])
|
||||||
(output_dir / "clip.txt").write_text("hello world", encoding="utf-8")
|
(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 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:
|
class Result:
|
||||||
returncode = 1
|
returncode = 1
|
||||||
stdout = ""
|
stdout = ""
|
||||||
|
|||||||
Reference in New Issue
Block a user