feat: add real PDF ingestion workflow

This commit is contained in:
Codex
2026-08-02 00:29:40 +08:00
parent 0eb2a86f36
commit 4d97a30616
18 changed files with 986 additions and 93 deletions
+14
View File
@@ -43,3 +43,17 @@ def test_invalid_command_is_rejected() -> None:
expected_revision=project.revision,
),
)
def test_unknown_region_is_rejected() -> None:
project = create_demo_project()
project.stage = WorkflowStage.REGION_SELECTION
with pytest.raises(InvalidTransitionError):
apply_command(
project,
CommandRequest(
command=WorkflowCommand.SELECT_REGION,
expected_revision=project.revision,
payload={"region_id": "missing-region"},
),
)