Bug 1280914 - Fix test_create after "Bug 1276216 - All tasks with no other dependencies should depend on the decision task"

MozReview-Commit-ID: CCdXafMIDUD
This commit is contained in:
Justin Wood 2016-06-20 10:22:15 -04:00
Родитель 43b27f7bac
Коммит d57a9292af
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -43,6 +43,7 @@ class TestCreate(unittest.TestCase):
self.created_tasks[task_id] = task_def
def test_create_tasks(self):
os.environ['TASK_ID'] = 'decisiontask'
kind = FakeKind()
tasks = {
'tid-a': Task(kind=kind, label='a', task={'payload': 'hello world'}),
@ -58,6 +59,9 @@ class TestCreate(unittest.TestCase):
self.assertEqual(task['payload'], 'hello world')
# make sure the dependencies exist, at least
for depid in task.get('dependencies', []):
if depid is 'decisiontask':
# Don't look for decisiontask here
continue
self.assertIn(depid, self.created_tasks)
def test_create_task_without_dependencies(self):