Skip to content

Commit

Permalink
ui test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronald Krist committed Mar 27, 2024
1 parent 837424b commit cad38ec
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions tests/test_ui/test_ui_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit cad38ec

Please sign in to comment.