Skip to content
Snippets Groups Projects
Commit adc9a359 authored by Valentin Rigal's avatar Valentin Rigal
Browse files

Fix tests

parent 20473e4d
No related branches found
No related tags found
No related merge requests found
......@@ -327,6 +327,7 @@ class TestRepositories(FixtureTestCase):
)
workflow = Workflow.objects.create(recipe=RECIPE)
workflow.start()
task_1, task_2 = workflow.tasks.order_by('slug')
artifact_1 = task_1.artifacts.create(
path='path/to/file.tar.zst',
......
......@@ -326,6 +326,7 @@ class TestWorkersWorkerVersions(FixtureAPITestCase):
self.assertEqual(self.version_1.docker_image, None)
workflow = Workflow.objects.create(recipe=RECIPE)
workflow.start()
task = workflow.tasks.get(slug='first')
artifact = task.artifacts.create(
path='path/to/file.json',
......@@ -354,6 +355,7 @@ class TestWorkersWorkerVersions(FixtureAPITestCase):
self.assertEqual(self.version_1.docker_image, None)
workflow = Workflow.objects.create(recipe=RECIPE)
workflow.start()
task = workflow.tasks.get(slug='first')
artifact = task.artifacts.create(
path='path/to/file.json',
......@@ -397,6 +399,7 @@ class TestWorkersWorkerVersions(FixtureAPITestCase):
def test_update_version_available_docker_image_not_null(self):
workflow = Workflow.objects.create(recipe=RECIPE)
workflow.start()
task = workflow.tasks.get(slug='first')
self.version_1.docker_image = task.artifacts.create(
path='path/to/file.json',
......@@ -421,6 +424,7 @@ class TestWorkersWorkerVersions(FixtureAPITestCase):
def test_update_version_available_docker_image_iid_not_null(self):
workflow = Workflow.objects.create(recipe=RECIPE)
workflow.start()
task = workflow.tasks.get(slug='first')
self.version_1.docker_image = task.artifacts.create(
path='path/to/file.json',
......
......@@ -447,6 +447,7 @@ class TestWorkflows(FixtureAPITestCase):
)
workflow_tmp = Workflow.objects.create(recipe=RECIPE)
workflow_tmp.start()
task_tmp = workflow_tmp.tasks.get(slug='first')
artifact = task_tmp.artifacts.create(
path='path/to/file.json',
......
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