fixed restart target

This commit is contained in:
2026-05-02 16:19:19 +02:00
parent 0505e8352c
commit 14fce4f4d6
3 changed files with 63 additions and 12 deletions

View File

@@ -330,6 +330,7 @@ def test_ui_scope_page_presents_scope_md():
assert response.status_code == 200
assert "SCOPE.md" in response.text
assert "Canonical scope summary for the repo-scoping repository." in response.text
assert "scope.generate" in response.text
assert "repo-scoping" in response.text
@@ -1358,8 +1359,10 @@ 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 '<span class="header-context">UI Repo Edited</span>' in approved_detail.text
assert "Approved Characteristics" in approved_detail.text
assert "Approved Characteristic Tree" in approved_detail.text
assert '<strong><a href="/ui/repos/1">UI Repo</a></strong>' in approved_detail.text
assert "scope" in approved_detail.text
assert "Evidence supporting this capability" in approved_detail.text
assert "1 scope" in approved_detail.text
@@ -1378,6 +1381,14 @@ def test_ui_register_analyze_and_approve_loop(tmp_path):
assert "Export" in approved_detail.text
assert "Elements" in approved_detail.text
assert "q=Report+Service+Status" in approved_detail.text
scope_listing = client.get(
f"/ui/repos/{repository_id}/elements",
params={"scope": "all", "type": "scopes", "entry_filter": "approved"},
)
assert scope_listing.status_code == 200
assert '<span class="header-context">UI Repo Edited</span>' in scope_listing.text
assert f'<a href="/ui/repos/{repository_id}">UI Repo</a>' in scope_listing.text
assert (
f"/ui/repos/{repository_id}/elements?scope=all&amp;entry_filter=approved&amp;type=abilities"
in approved_detail.text