Implement rec - Phase 4 complete
Quality Gate / gate (push) Successful in 2m38s

This commit is contained in:
Jim Lancaster
2026-09-02 16:23:09 -05:00
parent 27ec81ca5b
commit 6f4accf275
13 changed files with 98 additions and 141 deletions
+8
View File
@@ -4,6 +4,7 @@ import pytest
from transcription.config import Settings
from transcription.errors import ErrorCategory
from transcription.services.errors import PromptLoadError
from transcription.services.prompts import PromptStore
from transcription.services.prompts import PromptStoreError
@@ -79,6 +80,13 @@ def test_prompt_creation_and_empty_content_are_rejected(prompt_store):
assert empty.value.category == ErrorCategory.VALIDATION
def test_prompt_store_failures_are_catchable_as_prompt_load_errors(prompt_store):
store, _ = prompt_store
with pytest.raises(PromptLoadError):
store.read_prompt("missing.md")
def test_recovery_requires_a_backup(prompt_store):
store, _ = prompt_store