AP2.2f: Scrum Sprint-Review, Reaktivierung und Carryover beim Abschluss.
Deploy Development / deploy (push) Successful in 47s
Test Suite / pytest-backend (push) Successful in 2m58s
Test Suite / lint-backend (push) Successful in 4s
Test Suite / compose-smoke (push) Has been skipped
Test Suite / k6 /api/health Baseline (push) Successful in 19s
Test Suite / playwright-smoke (push) Successful in 1m1s

Offene APs können beim Abschluss in den Eingang oder einen anderen Sprint überführt werden; abgeschlossene Sprints sind reaktivierbar.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-07-24 17:40:59 +02:00
1 parent e65838118c
commit 04d1dbf1f9
14 files changed
+719 -31

No files matched your search

@@ -170,3 +170,77 @@ def test_complete_sprint_reports_open_actions(client):
assert completed.status_code == 200
assert completed.json()["status"] == "reached"
assert completed.json()["open_action_count_at_completion"] == 1
def test_reactivate_completed_sprint(client):
user = provision_user_in_tenant(tenant_role="admin")
token = _login(client, user)
created = _create_initiative(
client,
token,
title="Reactivate Sprint",
archetype_key="initiative.product",
)
initiative_id = created.json()["id"]
cycle = client.post(
f"/api/initiatives/{initiative_id}/work-cycles",
json={"title": "Sprint R1", "status": "active"},
headers=_auth(token),
)
cycle_id = cycle.json()["id"]
completed = client.post(
f"/api/initiatives/{initiative_id}/work-cycles/{cycle_id}/complete",
headers=_auth(token),
)
assert completed.status_code == 200
assert completed.json()["status"] == "reached"
reactivated = client.post(
f"/api/initiatives/{initiative_id}/work-cycles/{cycle_id}/reactivate",
headers=_auth(token),
)
assert reactivated.status_code == 200
assert reactivated.json()["status"] == "active"
active = client.get(
f"/api/initiatives/{initiative_id}/work-cycles/active",
headers=_auth(token),
)
assert active.status_code == 200
assert active.json()["id"] == cycle_id
def test_carryover_unplan_allows_in_progress(client):
user = provision_user_in_tenant(tenant_role="admin")
token = _login(client, user)
created = _create_initiative(
client,
token,
title="Carryover Unplan",
archetype_key="initiative.product",
)
initiative_id = created.json()["id"]
action = client.post(
f"/api/initiatives/{initiative_id}/actions",
json={"title": "In Arbeit", "status": "in_progress"},
headers=_auth(token),
)
action_id = action.json()["id"]
unplan = client.post(
f"/api/actions/{action_id}/unplan-to-backlog?carryover=true",
headers=_auth(token),
)
assert unplan.status_code == 200
assert unplan.json()["backlog_item"]["status"] == "accepted"
normal_unplan = client.post(
f"/api/actions/{action_id}/unplan-to-backlog",
headers=_auth(token),
)
assert normal_unplan.status_code in (400, 404)