Flask's RequestWrapper changed the json() function to a json property

This commit is contained in:
2018-08-29 14:00:57 +02:00
parent bbf21f614d
commit 3dd3006452
3 changed files with 13 additions and 13 deletions

View File

@@ -50,7 +50,7 @@ class TaskWorkflowTest(AbstractAttractTest):
# Test it through the API
resp = self.get('/api/nodes/%s' % task['_id'])
found = resp.json()
found = resp.json
self.assertEqual('Just düüüh it', found['properties']['task_type'])
@responses.activate
@@ -127,7 +127,7 @@ class TaskWorkflowTest(AbstractAttractTest):
url = '/api/nodes/%s' % task_child['_id']
resp = self.get(url)
json_task = resp.json()
json_task = resp.json
self.put(url,
json=remove_private_keys(json_task),