Skip to content
Snippets Groups Projects
Commit 6ecb8598 authored by Theo Lesage's avatar Theo Lesage Committed by Theo Lesage
Browse files

Fix test cause initialize_activity.delay(…)

parent 20441ce7
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !2270. Comments created here will be created in the context of that merge request.
......@@ -116,15 +116,11 @@ class TestCreateProcess(FixtureAPITestCase):
"element_name_contains": None,
})
process.worker_runs.create(
version=self.version_1
)
# The process needs to be started to produce a workflow
response = self.client.post(
reverse("api:process-start", kwargs={"pk": str(process.id)}),
# The process needs a worker run or thumbnails generation to start
{"worker_activity": "true"}
{}
)
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
process.refresh_from_db()
......@@ -491,14 +487,10 @@ class TestCreateProcess(FixtureAPITestCase):
self.assertEqual(process.elements.get(), page)
# The process needs to be started to produce a workflow
process.worker_runs.create(
version=self.version_1
)
response = self.client.post(
reverse("api:process-start", kwargs={"pk": str(process.id)}),
# The process needs a worker run or thumbnails generation to start
{"worker_activity": "true"}
{}
)
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
process.refresh_from_db()
......
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