Skip to content

Commit e276db7

Browse files
committed
add data for zimtaskinfo in tests
1 parent 9fd588f commit e276db7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

api/tests/unit/routes/test_utils.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
"notification": {"ended": {"webhook": ["bla"]}},
4949
"container": {"progress": {"partialZim": True}},
5050
"rank": 123,
51+
"offliner": "zimit",
52+
"version": "initial",
5153
},
5254
TaskInfo(
5355
id="6341c25f-aac9-41aa-b9bb-3ddee058a0bf",
@@ -72,6 +74,8 @@
7274
"config": {"warehouse_path": "/other", "offliner": {}},
7375
"status": "blu",
7476
"rank": 456,
77+
"offliner": "zimit",
78+
"version": "initial",
7579
},
7680
TaskInfo(
7781
id="6341c25f-aac9-41aa-b9bb-3ddee058a0bf",
@@ -93,6 +97,8 @@
9397
"container": {"progress": {"partialZim": False}},
9498
"status": "bla",
9599
"rank": 456,
100+
"offliner": "zimit",
101+
"version": "initial",
96102
},
97103
TaskInfo(
98104
id="6341c25f-aac9-41aa-b9bb-3ddee058a0bf",
@@ -114,6 +120,8 @@
114120
"container": {"progress": {"overall": 100}},
115121
"status": "bla",
116122
"rank": 456,
123+
"offliner": "zimit",
124+
"version": "initial",
117125
},
118126
TaskInfo(
119127
id="6341c25f-aac9-41aa-b9bb-3ddee058a0bf",
@@ -157,6 +165,8 @@ def test_convert_zimfarm_task_to_info(task: Any, expected: TaskInfo):
157165
"notification": {"ended": {"webhook": ["bla"]}},
158166
"container": {"progress": {"partialZim": True}},
159167
"rank": 123,
168+
"offliner": "zimit",
169+
"version": "initial",
160170
}
161171
)
162172

0 commit comments

Comments
 (0)