Merge "Remove task validation from api.Task.start"

This commit is contained in:
Jenkins 2015-09-25 17:13:22 +00:00 committed by Gerrit Code Review
commit 7e00a81f06

View File

@ -1587,5 +1587,15 @@ class FakeDeployment(dict):
class FakeTask(dict):
def __init__(self, task=None, temporary=False, **kwargs):
self.is_temporary = temporary
self.task = task or kwargs
self.set_failed = mock.Mock()
def __getitem__(self, key):
if key in self:
return self[key]
return self.task[key]
def to_dict(self):
return self