Compare commits

3 Commits

Author SHA1 Message Date
32fb8d9813 chore: ignore local build and venv artifacts
All checks were successful
CI / Backend (push) Successful in 11s
CI / CLI (push) Successful in 11s
2026-05-28 08:47:13 +00:00
575e2d6747 Fix backend test mocks for subprocess timeout kwarg
All checks were successful
CI / Backend (push) Successful in 12s
CI / CLI (push) Successful in 10s
2026-05-27 13:22:50 +00:00
869a70b621 Merge pull request 'Handle CLI request errors and backend whisper timeout' (#3) from fix/cli-network-errors-and-backend-timeout into main
Some checks failed
CI / Backend (push) Failing after 11s
CI / CLI (push) Successful in 11s
2026-05-27 15:19:38 +02:00
2 changed files with 5 additions and 2 deletions

3
.gitignore vendored
View File

@@ -1,3 +1,6 @@
__pycache__/ __pycache__/
.pytest_cache/ .pytest_cache/
*.egg-info/ *.egg-info/
.venv/
.venv-ci/
build/

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