Flask's RequestWrapper changed the json()
function to a json
property
This commit is contained in:
@@ -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),
|
||||
|
Reference in New Issue
Block a user