add test_api_publications_add_empty

This commit is contained in:
Dmitry Belyaev 2022-02-23 21:24:20 +03:00
parent 231d11a5fe
commit f8f18c40e7
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3
1 changed files with 7 additions and 0 deletions

View File

@ -148,6 +148,13 @@ def test_api_publications_add(client):
assert response.status_code == 409
def test_api_publications_add_empty(client):
endpoint = '/api/v1/publications'
# add with empty name
response = client.put(path=endpoint, data={'name': ''})
assert response.status_code == 422
def test_api_publications_add_force(client):
endpoint = '/api/v1/publications'
# add