@@ -22,7 +22,7 @@ def test_no_ids_run() -> None:
22
22
start_dir : str = os .fspath (TEST_DATA_PATH )
23
23
testids = []
24
24
pattern = "discovery_simple*"
25
- actual = run_tests (start_dir , testids , pattern , None , "fake-uuid" )
25
+ actual = run_tests (start_dir , testids , pattern , None , "fake-uuid" , 1 , None )
26
26
assert actual
27
27
assert all (item in actual for item in ("cwd" , "status" ))
28
28
assert actual ["status" ] == "success"
@@ -41,7 +41,13 @@ def test_single_ids_run() -> None:
41
41
"""
42
42
id = "discovery_simple.DiscoverySimple.test_one"
43
43
actual = run_tests (
44
- os .fspath (TEST_DATA_PATH ), [id ], "discovery_simple*" , None , "fake-uuid"
44
+ os .fspath (TEST_DATA_PATH ),
45
+ [id ],
46
+ "discovery_simple*" ,
47
+ None ,
48
+ "fake-uuid" ,
49
+ 1 ,
50
+ None ,
45
51
)
46
52
assert actual
47
53
assert all (item in actual for item in ("cwd" , "status" ))
@@ -65,7 +71,13 @@ def test_subtest_run() -> None:
65
71
"""
66
72
id = "test_subtest.NumbersTest.test_even"
67
73
actual = run_tests (
68
- os .fspath (TEST_DATA_PATH ), [id ], "test_subtest.py" , None , "fake-uuid"
74
+ os .fspath (TEST_DATA_PATH ),
75
+ [id ],
76
+ "test_subtest.py" ,
77
+ None ,
78
+ "fake-uuid" ,
79
+ 1 ,
80
+ None ,
69
81
)
70
82
subtests_ids = [
71
83
"test_subtest.NumbersTest.test_even (i=0)" ,
@@ -162,7 +174,7 @@ def test_multiple_ids_run(test_ids, pattern, cwd, expected_outcome) -> None:
162
174
163
175
All tests should have the outcome of `success`.
164
176
"""
165
- actual = run_tests (cwd , test_ids , pattern , None , "fake-uuid" )
177
+ actual = run_tests (cwd , test_ids , pattern , None , "fake-uuid" , 1 , None )
166
178
assert actual
167
179
assert all (item in actual for item in ("cwd" , "status" ))
168
180
assert actual ["status" ] == "success"
@@ -186,7 +198,13 @@ def test_failed_tests():
186
198
"test_fail_simple.RunFailSimple.test_two_fail" ,
187
199
]
188
200
actual = run_tests (
189
- os .fspath (TEST_DATA_PATH ), test_ids , "test_fail_simple*" , None , "fake-uuid"
201
+ os .fspath (TEST_DATA_PATH ),
202
+ test_ids ,
203
+ "test_fail_simple*" ,
204
+ None ,
205
+ "fake-uuid" ,
206
+ 1 ,
207
+ None ,
190
208
)
191
209
assert actual
192
210
assert all (item in actual for item in ("cwd" , "status" ))
@@ -214,7 +232,13 @@ def test_unknown_id():
214
232
"""
215
233
test_ids = ["unknown_id" ]
216
234
actual = run_tests (
217
- os .fspath (TEST_DATA_PATH ), test_ids , "test_fail_simple*" , None , "fake-uuid"
235
+ os .fspath (TEST_DATA_PATH ),
236
+ test_ids ,
237
+ "test_fail_simple*" ,
238
+ None ,
239
+ "fake-uuid" ,
240
+ 1 ,
241
+ None ,
218
242
)
219
243
assert actual
220
244
assert all (item in actual for item in ("cwd" , "status" ))
@@ -242,6 +266,8 @@ def test_incorrect_path():
242
266
"test_fail_simple*" ,
243
267
None ,
244
268
"fake-uuid" ,
269
+ 1 ,
270
+ None ,
245
271
)
246
272
assert actual
247
273
assert all (item in actual for item in ("cwd" , "status" , "error" ))
0 commit comments