mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
[F109] playbook curation status guards: approve/reject draft-only, archive approved-only
This commit is contained in:
@@ -37,7 +37,10 @@ _APPROVER = uuid4()
|
||||
def _playbook_mock() -> Any:
|
||||
pb = MagicMock(name="playbook")
|
||||
pb.id = _PID
|
||||
pb.status = "approved"
|
||||
# approve/reject act on a DRAFT (their legitimate starting state — F109
|
||||
# guards both to DRAFT-only). The index/unindex ordering assertions below
|
||||
# are independent of the starting status.
|
||||
pb.status = "draft"
|
||||
pb.title = "T"
|
||||
pb.problem = "P"
|
||||
pb.procedure = "Pr"
|
||||
|
||||
Reference in New Issue
Block a user