Skip to content

Commit 7d329f6

Browse files
committed
further additions
1 parent 47e9fd1 commit 7d329f6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

services/api-server/tests/unit/celery/test_tasks.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,24 @@ async def test_list_celery_tasks(
8181
"method, url, celery_exception, expected_status_code",
8282
[
8383
("GET", "/v0/tasks", CeleryError(), status.HTTP_500_INTERNAL_SERVER_ERROR),
84+
(
85+
"GET",
86+
f"/v0/tasks/{_faker.uuid4()}",
87+
CeleryError(),
88+
status.HTTP_500_INTERNAL_SERVER_ERROR,
89+
),
90+
(
91+
"POST",
92+
f"/v0/tasks/{_faker.uuid4()}:cancel",
93+
CeleryError(),
94+
status.HTTP_500_INTERNAL_SERVER_ERROR,
95+
),
96+
(
97+
"GET",
98+
f"/v0/tasks/{_faker.uuid4()}/result",
99+
CeleryError(),
100+
status.HTTP_500_INTERNAL_SERVER_ERROR,
101+
),
84102
],
85103
)
86104
async def test_celery_tasks_error_propagation(

0 commit comments

Comments
 (0)