Debian Codegraph @

src/globus_sdk/testing/data/compute/v2/get_task_group.py

raw
1 from globus_sdk.testing.models import RegisteredResponse, ResponseSet
2
3 from .._common import TASK_GROUP_ID, TASK_ID, TASK_ID_2
4
5 TASK_BATCH_DOC = {
6 "taskgroup_id": TASK_GROUP_ID,
7 "create_websockets_queue": True,
8 "tasks": [
9 {"id": TASK_ID, "created_at": "2021-05-05T15:00:00.000000"},
10 {"id": TASK_ID_2, "created_at": "2021-05-05T15:01:00.000000"},
11 ],
12 }
13
14 RESPONSES = ResponseSet(
15 metadata={
16 "task_group_id": TASK_GROUP_ID,
17 "task_id": TASK_ID,
18 "task_id_2": TASK_ID_2,
19 },
20 default=RegisteredResponse(
21 service="compute",
22 path=f"/v2/taskgroup/{TASK_GROUP_ID}",
23 method="GET",
24 json=TASK_BATCH_DOC,
25 ),
26 )