generated from coulomb/repo-seed
Candidate support/evidence acceptance
This commit is contained in:
@@ -1205,6 +1205,18 @@ def test_ui_register_analyze_and_approve_loop(tmp_path):
|
||||
assert pending_candidate_listing.status_code == 200
|
||||
assert "Accept" in pending_candidate_listing.text
|
||||
|
||||
pending_support_listing = client.get(
|
||||
f"/ui/repos/{repository_id}/elements",
|
||||
params={
|
||||
"scope": "candidate",
|
||||
"analysis_run_id": first_run_id,
|
||||
"type": "supports",
|
||||
},
|
||||
)
|
||||
assert pending_support_listing.status_code == 200
|
||||
assert "Candidate Supports" in pending_support_listing.text
|
||||
assert "Accept" in pending_support_listing.text
|
||||
|
||||
approve_response = client.post(
|
||||
f"{run_path}/candidate-graph/approve",
|
||||
follow_redirects=False,
|
||||
|
||||
Reference in New Issue
Block a user