add test_api_publications_add_empty
This commit is contained in:
parent
231d11a5fe
commit
f8f18c40e7
@ -148,6 +148,13 @@ def test_api_publications_add(client):
|
|||||||
assert response.status_code == 409
|
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):
|
def test_api_publications_add_force(client):
|
||||||
endpoint = '/api/v1/publications'
|
endpoint = '/api/v1/publications'
|
||||||
# add
|
# add
|
||||||
|
Loading…
Reference in New Issue
Block a user