generated from coulomb/repo-seed
Scope as first class root charactaristic
This commit is contained in:
@@ -1611,6 +1611,21 @@ def test_ui_manual_registry_entry_loop(tmp_path):
|
||||
assert "Add Capability Support" in detail_response.text
|
||||
assert "Supported characteristic kind" in detail_response.text
|
||||
assert "Reference kind" in detail_response.text
|
||||
assert "Save Scope" in detail_response.text
|
||||
|
||||
scope_response = client.post(
|
||||
f"{repository_path}/scope/edit",
|
||||
data={
|
||||
"name": "Manual Repository Scope",
|
||||
"description": "Root product scope.",
|
||||
"confidence": "0.91",
|
||||
},
|
||||
follow_redirects=False,
|
||||
)
|
||||
assert scope_response.status_code == 303
|
||||
assert client.get(f"/repos/{repository_id}/ability-map").json()["scope"][
|
||||
"name"
|
||||
] == "Manual Repository Scope"
|
||||
|
||||
ability_response = client.post(
|
||||
f"{repository_path}/abilities",
|
||||
|
||||
Reference in New Issue
Block a user