Cleanup for unit tests, working command unit test

This commit is contained in:
Matthew Jones
2014-03-13 10:47:21 -04:00
parent c8534055ef
commit 3fe31828a8
4 changed files with 4 additions and 4 deletions

View File

@@ -410,7 +410,7 @@ class Job(CommonTask):
if stored_args is None or stored_args == '':
opts = dict([(field, kwargs.get(field, '')) for field in needed])
else:
opts = stored_args
opts = dict([(field, stored_args.get(field, '')) for field in needed])
if not all(opts.values()):
return False
task_class().apply_async((self.pk,), opts, link_error=error_callback)