repository metadata editing in the UI

This commit is contained in:
2026-04-26 02:32:41 +02:00
parent 9ed98c7058
commit 9a6b8ea6bf
2 changed files with 40 additions and 1 deletions

View File

@@ -365,6 +365,21 @@ def test_ui_register_analyze_and_approve_loop(tmp_path):
detail_response = client.get(repository_path)
assert detail_response.status_code == 200
assert "Run Analysis" in detail_response.text
assert "Repository Metadata" in detail_response.text
edit_repository_response = client.post(
f"{repository_path}/edit",
data={
"name": "UI Repo Edited",
"description": "Edited in the UI.",
"branch": "develop",
},
follow_redirects=False,
)
assert edit_repository_response.status_code == 303
detail_response = client.get(repository_path)
assert "UI Repo Edited" in detail_response.text
assert "develop" in detail_response.text
run_response = client.post(
f"{repository_path}/analysis-runs",
@@ -389,7 +404,7 @@ def test_ui_register_analyze_and_approve_loop(tmp_path):
approved_detail = client.get(approve_response.headers["location"])
assert approved_detail.status_code == 200
assert "Approved Ability Map" in approved_detail.text
assert "Review UI Repo Repository Usefulness" in approved_detail.text
assert "Review UI Repo Edited Repository Usefulness" in approved_detail.text
assert "Language: Python" in approved_detail.text
assert "Framework: FastAPI" in approved_detail.text
assert "interface:app.py:3" in approved_detail.text