advanced the review workflow
This commit is contained in:
parent
aa18dfc8f2
commit
5503b9761e
6 changed files with 208 additions and 2 deletions
|
|
@ -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/"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue