diff --git a/tests/test_ui/test_ui_resource.py b/tests/test_ui/test_ui_resource.py index 9f7594a0..794f0fd1 100644 --- a/tests/test_ui/test_ui_resource.py +++ b/tests/test_ui/test_ui_resource.py @@ -14,15 +14,6 @@ def test_draft_publish_request_present( with client_with_login.get(f"/thesis/{example_topic_draft['id']}/edit") as c: assert c.status_code == 200 data = json.loads(c.text) - assert data["creatable_request_types"]["thesis_non_duplicable"] == { - "description": "", - "links": { - "actions": { - "create": f"https://127.0.0.1:5000/api/thesis/{example_topic_draft['id']}/draft/requests/thesis_non_duplicable" - } - }, - "name": "Non duplicable", - } assert data["creatable_request_types"]["thesis_publish_draft"] == { "description": "Request publishing of a draft", "links": { @@ -50,14 +41,14 @@ def test_record_delete_request_present( assert c.status_code == 200 data = json.loads(c.text) assert len(data["creatable_request_types"]) == 2 - assert data["creatable_request_types"]["thesis_generic_request"] == { - "description": "", + assert data["creatable_request_types"]["thesis_edit_record"] == { + "description": 'Request re-opening of published record', "links": { "actions": { - "create": f"https://127.0.0.1:5000/api/thesis/{example_topic['id']}/requests/thesis_generic_request" + "create": f"https://127.0.0.1:5000/api/thesis/{example_topic['id']}/requests/thesis_edit_record" } }, - "name": "Generic request", + "name": "Edit record", } assert data["creatable_request_types"]["thesis_delete_record"] == { "description": "Request deletion of published record",