intentionally forget start_args when job is done

This commit is contained in:
AlanCoding
2017-11-30 08:12:25 -05:00
parent 526bcc4a68
commit 1f8cab4171
5 changed files with 9 additions and 6 deletions

View File

@@ -271,7 +271,7 @@ class TestGenericRun(TestJobExecution):
with pytest.raises(Exception):
self.task.run(self.pk)
for c in [
mock.call(self.pk, execution_node=settings.CLUSTER_HOST_ID, status='running'),
mock.call(self.pk, execution_node=settings.CLUSTER_HOST_ID, status='running', start_args=''),
mock.call(self.pk, status='canceled')
]:
assert c in self.task.update_model.call_args_list