Skip to content
Snippets Groups Projects
Commit 3cbb02cf authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

fixed parameter assignment for tasks

parent 5c38a504
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -34,7 +34,7 @@ def create_job():
return jsonify({'error': 'Task {} not found.'.format(
json['task'])}), 400
try:
async_result = task.delay(*json['args'])
async_result = task.delay(**json['args'])
except TypeError as e:
return jsonify({'error': 'Invalid Arguments for task {}: {}'.format(
json['task'], e)}), 400
......
......@@ -47,9 +47,6 @@ class TestAnalytics(object):
def test_400_if_POST_body_invalid(self, bad_request):
assert bad_request.status_code == 400
def test_403_if_creating_but_not_authenticated(self, app):
assert False
# test DELETE to /analytics/{task_id}
def test_resource_deleted(self, app):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment