@@ -47,7 +47,11 @@ def run_test(monkeypatch, run_transform, responses):
47
47
json = {"taskId" : decision_task_id },
48
48
)
49
49
50
- def inner (task : dict [str , Any ]) -> dict [str , Any ] | None :
50
+ # `name` may seem like an awkard identifier here, but outside of tests
51
+ # this comes from the keys in a `kind`. `task_label` is not really
52
+ # an ideal default, but it's the best option we have here, and this value
53
+ # is irrelevant to many tests anyways.
54
+ def inner (task : dict [str , Any ], name : str = task_label ) -> dict [str , Any ] | None :
51
55
find_tasks .cache_clear ()
52
56
53
57
task = merge (deepcopy (base_task ), task )
@@ -59,7 +63,9 @@ def inner(task: dict[str, Any]) -> dict[str, Any] | None:
59
63
json = task_graph ,
60
64
)
61
65
62
- result = run_transform (transforms , {"decision-index-paths" : [index ]})
66
+ result = run_transform (
67
+ transforms , {"decision-index-paths" : [index ], "name" : name }
68
+ )
63
69
if not result :
64
70
return None
65
71
@@ -109,7 +115,7 @@ def test_android_hw_skipped(run_test):
109
115
110
116
111
117
def test_basic (run_test ):
112
- result = run_test ({"attributes" : {"unittest_variant" : "os-integration" }})
118
+ result = run_test ({"attributes" : {"unittest_variant" : "os-integration" }}, "gecko" )
113
119
assert result == {
114
120
"attributes" : {"integration" : "gecko" },
115
121
"dependencies" : {"apply" : "tc-admin-apply-staging" },
@@ -133,7 +139,8 @@ def test_docker_image(run_test):
133
139
{
134
140
"attributes" : {"unittest_variant" : "os-integration" },
135
141
"task" : {"payload" : {"image" : {"taskId" : "def" }}},
136
- }
142
+ },
143
+ "gecko" ,
137
144
)
138
145
assert result ["dependencies" ] == {
139
146
"apply" : "tc-admin-apply-staging" ,
@@ -225,7 +232,8 @@ def test_private_artifact(run_test):
225
232
"env" : {"MOZ_FETCHES" : '[{"task": "def", "artifact": "foo.txt"}]' },
226
233
}
227
234
},
228
- }
235
+ },
236
+ "gecko" ,
229
237
)
230
238
assert result ["dependencies" ] == {
231
239
"apply" : "tc-admin-apply-staging" ,
0 commit comments