feat: add real PDF ingestion workflow
This commit is contained in:
@@ -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"},
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user