diff --git a/tests/test_ui/test_ui_resource.py b/tests/test_ui/test_ui_resource.py index 47b38ae5..a27e1843 100644 --- a/tests/test_ui/test_ui_resource.py +++ b/tests/test_ui/test_ui_resource.py @@ -9,18 +9,11 @@ def test_draft_publish_request_present( app, record_ui_resource, example_topic_draft, client_with_login, fake_manifest ): - def check_request(ctext): - assert "publish_draft:" in ctext - assert "type': 'publish_draft'" in ctext - assert "'status': 'created'" in ctext - assert "'receiver': None" in ctext - assert "'actions': ['submit']" in ctext - 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["available_requests"]["publish_draft"] == {'actions': allowed_actions, 'receiver': None, 'status': 'created', 'type': 'publish_draft'} - assert data["form_config"]["publish_draft"] == {'actions': ['submit', 'delete'], 'receiver': None, 'status': 'created', 'type': 'publish_draft'} + assert data["form_config"]["publish_draft"] == {'actions': allowed_actions, 'receiver': None, 'status': 'created', 'type': 'publish_draft'} def test_draft_publish_unauthorized(