Commit a2a3196d authored by Daniele Venzano's avatar Daniele Venzano

Fix tests after change in validation api

parent 4d84612a
......@@ -82,9 +82,9 @@ class TestZoeRest:
with open('integration_tests/zapp.json', encoding='utf-8') as data_file:
data = json.loads(data_file.read())
req = requests.post(ZOE_API_URI + 'zapp_validate', json={"application": data}, timeout=TIMEOUT)
req = requests.post(ZOE_API_URI + 'zapp_validate', json=data, timeout=TIMEOUT)
if req.status_code != 200:
print('Error reason: {}'.format(req.reason))
print('Error reason: {}, {}'.format(req.reason, req.text))
assert req.status_code == 200
def test_zapp_validate_fail(self, zoe_api_process):
......@@ -94,5 +94,5 @@ class TestZoeRest:
data = json.loads(data_file.read())
del data['version']
req = requests.post(ZOE_API_URI + 'zapp_validate', json={"application": data}, timeout=TIMEOUT)
req = requests.post(ZOE_API_URI + 'zapp_validate', json=data, timeout=TIMEOUT)
assert req.status_code == 400
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment