first review workflow slice

This commit is contained in:
2026-04-25 22:46:22 +02:00
parent 519b7726e7
commit 8f94c38309
7 changed files with 198 additions and 0 deletions

View File

@@ -112,6 +112,22 @@ def test_api_analysis_run_loop(tmp_path):
"Review Frontend Repository Usefulness"
)
approve_response = client.post(
f"/repos/{repository_id}/analysis-runs/"
f"{run['analysis_run']['id']}/candidate-graph/approve",
json={"notes": "Approved in API test"},
)
assert approve_response.status_code == 200
ability_map = approve_response.json()
assert ability_map["repository"]["status"] == "indexed"
assert ability_map["abilities"][0]["name"] == (
"Review Frontend Repository Usefulness"
)
search_response = client.get("/search", params={"q": "structure"})
assert search_response.status_code == 200
assert search_response.json()
facts_response = client.get(f"/repos/{repository_id}/observed-facts")
assert facts_response.status_code == 200
fact_names = {