fix(A1): enforce_single_active via roadmaps join (pytest)
Deploy Development / deploy (push) Successful in 1m1s
Test Suite / pytest-backend (push) Successful in 4m43s
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped
Test Suite / k6 /api/health Baseline (push) Successful in 18s
Test Suite / playwright-smoke (push) Successful in 16s
Deploy Development / deploy (push) Successful in 1m1s
Test Suite / pytest-backend (push) Successful in 4m43s
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped
Test Suite / k6 /api/health Baseline (push) Successful in 18s
Test Suite / playwright-smoke (push) Successful in 16s
roadmap_items hat kein initiative_id — Single-Active-Update join auf roadmaps. test_ap20e an Uebungssets angepasst. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
19e962d8ec
commit
192a65a798
2 files changed
+13
-8
No files matched your search
@@ -51,8 +51,11 @@ def test_maturity_stage_reached_rotates_recurring(client):
|
||||
headers=_auth(token),
|
||||
).json()
|
||||
titles = {r["title"]: r["status"] for r in recurring}
|
||||
assert titles.get("Tägliche Übung") == "paused"
|
||||
assert any(t.startswith("Übung — Stufe 2") for t in titles)
|
||||
assert titles.get("Vorbeuge-Dehnung") == "paused"
|
||||
assert titles.get("Hüftöffner (Schmetterling)") == "paused"
|
||||
assert any(
|
||||
t.startswith("Seitlicher Spagat") and titles[t] == "active" for t in titles
|
||||
)
|
||||
|
||||
items_after = client.get(
|
||||
f"/api/initiatives/{initiative_id}/roadmap/items",
|
||||
|
||||
Reference in new issue
Block a user