add status:409 test to test_api_publications_add
This commit is contained in:
parent
abb1434b8d
commit
57265c4e7c
@ -142,3 +142,8 @@ def test_api_publications_add(client):
|
|||||||
data = response.get_json()
|
data = response.get_json()
|
||||||
assert data['message'] == 'created'
|
assert data['message'] == 'created'
|
||||||
assert data['name'] == 'test123'
|
assert data['name'] == 'test123'
|
||||||
|
# add same publication
|
||||||
|
response = client.put(path=endpoint, data={'name': 'test123'})
|
||||||
|
assert response.status_code == 409
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user