refactor(campaigns): fix approve() error message, add terminal-state test
This commit is contained in:
@@ -212,6 +212,12 @@ def test_approve_from_draft_raises():
|
||||
e.approve()
|
||||
|
||||
|
||||
def test_approve_from_completed_raises():
|
||||
e = _entity("completed", test_count=1)
|
||||
with pytest.raises(InvalidStateTransition):
|
||||
e.approve()
|
||||
|
||||
|
||||
# ── 11. Reject ─────────────────────────────────────────────────────────
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user