test: Assertions auf Kernel v0.4 und tech_debt-Vokabular anpassen
All checks were successful
Deploy Development / deploy (push) Successful in 47s
Test Suite / pytest-backend (push) Successful in 4m15s
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 19s
Test Suite / playwright-smoke (push) Successful in 20s
All checks were successful
Deploy Development / deploy (push) Successful in 47s
Test Suite / pytest-backend (push) Successful in 4m15s
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 19s
Test Suite / playwright-smoke (push) Successful in 20s
Behebt 6 CI-Failures nach Agent-Slots/Tech-Debt-Release. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
a5154cbd3b
commit
390161e224
|
|
@ -50,7 +50,8 @@ def test_operating_context_linear_has_standard_backlog_vocabulary(client):
|
|||
)
|
||||
vocab = res.json()["backlog_vocabulary"]
|
||||
assert vocab["profile_key"] == "standard_intake"
|
||||
assert vocab["kinds"] == ["story", "bug", "issue"]
|
||||
assert vocab["kinds"] == ["story", "bug", "issue", "tech_debt"]
|
||||
assert vocab["labels"]["tech_debt"] == "Technische Schuld"
|
||||
assert "epic" not in vocab["kinds"]
|
||||
assert vocab["capabilities"]["epic_hierarchy"] is False
|
||||
assert "backlog_epic_hierarchy" not in res.json()["steering_elements"]
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ def test_steering_snapshot_includes_sprint_commit_proposals(client):
|
|||
)
|
||||
assert snapshot.status_code == 200
|
||||
body = snapshot.json()
|
||||
assert body["steering_kernel"]["data_source"] == "steering_kernel_v0.3"
|
||||
assert body["steering_kernel"]["data_source"] == "steering_kernel_v0.4"
|
||||
proposals = body.get("sprint_commit_proposals") or []
|
||||
assert len(proposals) >= 2
|
||||
assert proposals[0]["proposal_key"] == "sprint_commit"
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ def test_evaluate_steering_returns_horizon_and_next(client):
|
|||
|
||||
ctx = tenant_context_from_user(user)
|
||||
evaluation = evaluate_steering(ctx, initiative_id=initiative_id)
|
||||
assert evaluation.data_source == "steering_kernel_v0.3"
|
||||
assert evaluation.data_source == "steering_kernel_v0.4"
|
||||
assert evaluation.lifecycle.slot_map.get("action_selection") == "active"
|
||||
assert evaluation.lifecycle.slot_map.get("validation") == "active"
|
||||
assert evaluation.lifecycle.slot_map.get("review") == "optional"
|
||||
|
|
@ -77,7 +77,7 @@ def test_snapshot_routes_through_kernel_not_side_path(client):
|
|||
f"/api/initiatives/{initiative_id}/steering-snapshot",
|
||||
headers=_auth(token),
|
||||
)
|
||||
assert snap.json()["steering_kernel"]["data_source"] == "steering_kernel_v0.3"
|
||||
assert snap.json()["steering_kernel"]["data_source"] == "steering_kernel_v0.4"
|
||||
assert "lifecycle" in snap.json()["steering_kernel"]
|
||||
assert snap.json()["steering_kernel"]["lifecycle"]["slot_map"]["closure"] == "active"
|
||||
|
||||
|
|
@ -103,4 +103,4 @@ def test_apply_steering_event_stub(client):
|
|||
)
|
||||
assert result["accepted"] is True
|
||||
assert result["handled"] is True
|
||||
assert result["evaluation"]["data_source"] == "steering_kernel_v0.3"
|
||||
assert result["evaluation"]["data_source"] == "steering_kernel_v0.4"
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ def test_continuous_product_routes_through_spine(client):
|
|||
body = snap.json()
|
||||
kernel = body["steering_kernel"]
|
||||
assert kernel["primary_method_key"] == "continuous_product"
|
||||
assert kernel["data_source"] == "steering_kernel_v0.3"
|
||||
assert kernel["data_source"] == "steering_kernel_v0.4"
|
||||
assert kernel["lifecycle"]["slot_map"]["closure"] == "n/a"
|
||||
assert kernel["lifecycle"]["slot_map"]["planning"] == "active"
|
||||
assert body.get("next_actions") is not None
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ def test_resolve_standard_for_generic_backlog():
|
|||
)
|
||||
assert vocab["profile_key"] == "standard_intake"
|
||||
assert vocab["labels"]["story"] == "Story"
|
||||
assert "tech_debt" in vocab["kinds"]
|
||||
|
||||
|
||||
def test_resolve_empty_without_backlog_slice():
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user