generated from coulomb/repo-seed
first review workflow slice
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user