Fix: AP2.0 pytest — Snapshot statt nicht vorhandenem GET context.
All checks were successful
Deploy Development / deploy (push) Successful in 44s
Test Suite / pytest-backend (push) Successful in 2m2s
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 17s
All checks were successful
Deploy Development / deploy (push) Successful in 44s
Test Suite / pytest-backend (push) Successful in 2m2s
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 17s
Steering PATCH akzeptiert alle registrierten method_keys (nicht nur Legacy-Literal). Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
3bd983297b
commit
95b743d6fd
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Literal, Optional
|
||||
from typing import Optional
|
||||
|
||||
from capabilities import require_capability
|
||||
from fastapi import APIRouter, Depends, HTTPException
|
||||
|
|
@ -17,9 +17,7 @@ router = APIRouter(prefix="/api/steering", tags=["steering"])
|
|||
|
||||
|
||||
class SteeringContextUpdateRequest(BaseModel):
|
||||
method_key: Optional[
|
||||
Literal["generic_operating", "product_milestone_driven"]
|
||||
] = None
|
||||
method_key: str = Field(..., min_length=1)
|
||||
|
||||
|
||||
@router.get("/methods")
|
||||
|
|
|
|||
|
|
@ -57,12 +57,12 @@ def test_program_initiative_gets_program_delivery_method(client):
|
|||
assert created.status_code == 201
|
||||
initiative_id = created.json()["id"]
|
||||
|
||||
ctx = client.get(
|
||||
f"/api/steering/initiatives/{initiative_id}/context",
|
||||
snap = client.get(
|
||||
f"/api/initiatives/{initiative_id}/steering-snapshot",
|
||||
headers=_auth(token),
|
||||
)
|
||||
assert ctx.status_code == 200
|
||||
assert ctx.json()["method_key"] == "program_delivery"
|
||||
assert snap.status_code == 200
|
||||
assert snap.json()["method_key"] == "program_delivery"
|
||||
|
||||
|
||||
def test_project_inherits_mirror_archetype(client):
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user