add status:409 test to test_api_publications_add
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user