Skip to content
Snippets Groups Projects
Commit 738a4544 authored by sandcha's avatar sandcha
Browse files

Detect in test dotations request body error

parent 672f1694
Branches
Tags 4.2.1
1 merge request!19Ajoute un endpoint /dotations
......@@ -2,10 +2,11 @@ from functools import partial
import json
def test_dotations(client, headers):
def test_dotations_request_body_error(client, headers):
request = {}
response_function = partial(client.post, "dotations", headers=headers)
response = response_function(data=json.dumps(request))
assert response.status_code == 400
assert "Error" in json.loads(response.data)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment