diff --git a/tests/test_pub1c-rest.py b/tests/test_pub1c-rest.py index 9ce543c..1b9dd99 100644 --- a/tests/test_pub1c-rest.py +++ b/tests/test_pub1c-rest.py @@ -142,3 +142,8 @@ def test_api_publications_add(client): data = response.get_json() assert data['message'] == 'created' assert data['name'] == 'test123' + # add same publication + response = client.put(path=endpoint, data={'name': 'test123'}) + assert response.status_code == 409 + +