generated from coulomb/repo-seed
advanced the review workflow
This commit is contained in:
@@ -138,6 +138,20 @@ def test_api_analysis_run_loop(tmp_path):
|
||||
assert candidate_graph["abilities"][0]["name"] == (
|
||||
"Review Frontend Repository Usefulness"
|
||||
)
|
||||
candidate_ability_id = candidate_graph["abilities"][0]["id"]
|
||||
|
||||
reject_response = client.post(
|
||||
f"/repos/{repository_id}/analysis-runs/"
|
||||
f"{run['analysis_run']['id']}/candidate-abilities/"
|
||||
f"{candidate_ability_id}/reject",
|
||||
json={"notes": "Reject once to exercise review correction."},
|
||||
)
|
||||
assert reject_response.status_code == 200
|
||||
assert reject_response.json()["abilities"][0]["status"] == "rejected"
|
||||
|
||||
run_response = client.post(f"/repos/{repository_id}/analysis-runs", json={})
|
||||
assert run_response.status_code == 201
|
||||
run = run_response.json()
|
||||
|
||||
approve_response = client.post(
|
||||
f"/repos/{repository_id}/analysis-runs/"
|
||||
|
||||
Reference in New Issue
Block a user