diff --git a/tests/test_api_v10.py b/tests/test_api_v10.py index 0e1445c0..766815ed 100644 --- a/tests/test_api_v10.py +++ b/tests/test_api_v10.py @@ -892,6 +892,18 @@ def test_permissions_endpoint(client): assert r.status_code == 200 assert r.json == config['PERMISSIONS'][0:1] + r = client.get('/api/v1.0/permissions?html=1') + assert r.status_code == 200 + assert r.content_type == 'text/html' + assert f"
Name | Description | Maintainers | Testcases | -User groups | +Users/Groups | ||
---|---|---|---|---|---|---|---|
{{ p["name"] }} | {{ p["description"] }} | -{{ p["maintainers"] | map("urlize") | join(" ") | safe }} |
- {{ p["testcases"] | join(" ") | safe }} |
- {{ p["groups"] | join(" ") | safe }} |
+ {{ p["maintainers"] | map("urlize") | safe | join(" ") | safe }} |
+ {{ p["testcases"] | map("replace('-', '‑')") | join(" ") | safe }} |
+
+ {% if p["groups"] | length > 0 -%}
+ Groups: + {{ p["groups"] | map("replace('-', '‑')") | join(" ") | safe }} + {%- endif %} + {% if p["users"] | length > 0 -%} + Users: + {{ p["users"] | map("replace('-', '‑')") | join(" ") | safe }} + {%- endif %} + |