add status:409 test to test_api_publications_add

This commit is contained in:
Dmitry Belyaev 2021-09-22 15:53:24 +03:00
parent abb1434b8d
commit 57265c4e7c
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3
1 changed files with 5 additions and 0 deletions

View File

@ -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