|
23 | 23 | @pytest.mark.parametrize( |
24 | 24 | "repopath_folder_name," |
25 | 25 | "submitter," |
| 26 | + "expected_conclusion," |
26 | 27 | "expected_type," |
27 | 28 | "expected_error," |
28 | 29 | "expected_submissions," |
|
32 | 33 | ( |
33 | 34 | "submitter-access-allow", |
34 | 35 | "AllowUser", |
| 36 | + "", |
35 | 37 | "submission", |
36 | 38 | "", |
37 | 39 | [ |
|
53 | 55 | "submitter-access-deny", |
54 | 56 | "DenyUser", |
55 | 57 | "declined", |
| 58 | + "invalid", |
56 | 59 | "Library registry privileges for @DenyUser have been revoked.%0ASee: https://example.com", |
57 | 60 | None, |
58 | 61 | "", |
59 | 62 | "", |
60 | 63 | ), |
61 | | - ("list-deleted-diff", "FooUser", "other", "", None, "", ""), |
62 | | - ("list-deleted-diff", "FooUser", "other", "", None, "", ""), |
63 | | - ("list-deleted-diff", "FooUser", "other", "", None, "", ""), |
64 | | - ("multi-file-diff", "FooUser", "other", "", None, "", ""), |
65 | | - ("non-list-diff", "FooUser", "other", "", None, "", ""), |
66 | | - ("list-rename-diff", "FooUser", "other", "", None, "", ""), |
| 64 | + ("list-deleted-diff", "FooUser", "", "other", "", None, "", ""), |
| 65 | + ("list-deleted-diff", "FooUser", "", "other", "", None, "", ""), |
| 66 | + ("list-deleted-diff", "FooUser", "", "other", "", None, "", ""), |
| 67 | + ("multi-file-diff", "FooUser", "", "other", "", None, "", ""), |
| 68 | + ("non-list-diff", "FooUser", "", "other", "", None, "", ""), |
| 69 | + ("list-rename-diff", "FooUser", "", "other", "", None, "", ""), |
67 | 70 | ( |
68 | 71 | "no-final-newline-diff", |
69 | 72 | "FooUser", |
| 73 | + "", |
70 | 74 | "invalid", |
71 | 75 | "Pull request removes newline from the end of a file.%0APlease add a blank line to the end of the file.", |
72 | 76 | None, |
73 | 77 | "", |
74 | 78 | "", |
75 | 79 | ), |
76 | | - ("removal", "FooUser", "removal", "", None, "", ""), |
| 80 | + ("removal", "FooUser", "", "removal", "", None, "", ""), |
77 | 81 | ( |
78 | 82 | "modification", |
79 | 83 | "FooUser", |
| 84 | + "", |
80 | 85 | "modification", |
81 | 86 | "", |
82 | 87 | [ |
|
96 | 101 | ( |
97 | 102 | "url-error", |
98 | 103 | "FooUser", |
| 104 | + "", |
99 | 105 | "submission", |
100 | 106 | "", |
101 | 107 | [ |
|
115 | 121 | ( |
116 | 122 | "url-404", |
117 | 123 | "FooUser", |
| 124 | + "", |
118 | 125 | "submission", |
119 | 126 | "", |
120 | 127 | [ |
|
135 | 142 | "all-owner-access-deny", |
136 | 143 | "FooUser", |
137 | 144 | "declined", |
| 145 | + "submission", |
138 | 146 | "", |
139 | 147 | [ |
140 | 148 | { |
|
154 | 162 | ( |
155 | 163 | "some-owner-access-deny", |
156 | 164 | "FooUser", |
| 165 | + "", |
157 | 166 | "submission", |
158 | 167 | "", |
159 | 168 | [ |
|
184 | 193 | ( |
185 | 194 | "not-supported-git-host", |
186 | 195 | "FooUser", |
| 196 | + "", |
187 | 197 | "submission", |
188 | 198 | "", |
189 | 199 | [ |
|
205 | 215 | ( |
206 | 216 | "not-git-clone-url", |
207 | 217 | "FooUser", |
| 218 | + "", |
208 | 219 | "submission", |
209 | 220 | "", |
210 | 221 | [ |
|
225 | 236 | ( |
226 | 237 | "already-in-library-manager", |
227 | 238 | "FooUser", |
| 239 | + "", |
228 | 240 | "submission", |
229 | 241 | "", |
230 | 242 | [ |
|
244 | 256 | ( |
245 | 257 | "type-arduino", |
246 | 258 | "FooUser", |
| 259 | + "", |
247 | 260 | "submission", |
248 | 261 | "", |
249 | 262 | [ |
|
263 | 276 | ( |
264 | 277 | "type-partner", |
265 | 278 | "FooUser", |
| 279 | + "", |
266 | 280 | "submission", |
267 | 281 | "", |
268 | 282 | [ |
|
282 | 296 | ( |
283 | 297 | "type-recommended", |
284 | 298 | "FooUser", |
| 299 | + "", |
285 | 300 | "submission", |
286 | 301 | "", |
287 | 302 | [ |
|
301 | 316 | ( |
302 | 317 | "type-contributed", |
303 | 318 | "FooUser", |
| 319 | + "", |
304 | 320 | "submission", |
305 | 321 | "", |
306 | 322 | [ |
|
321 | 337 | ( |
322 | 338 | "no-tags", |
323 | 339 | "FooUser", |
| 340 | + "", |
324 | 341 | "submission", |
325 | 342 | "", |
326 | 343 | [ |
|
342 | 359 | ( |
343 | 360 | "no-library-properties", |
344 | 361 | "FooUser", |
| 362 | + "", |
345 | 363 | "submission", |
346 | 364 | "", |
347 | 365 | [ |
|
362 | 380 | ( |
363 | 381 | "duplicates-in-submission", |
364 | 382 | "FooUser", |
| 383 | + "", |
365 | 384 | "submission", |
366 | 385 | "", |
367 | 386 | [ |
@@ -395,6 +414,7 @@ def test_request( |
395 | 414 | run_command, |
396 | 415 | repopath_folder_name, |
397 | 416 | submitter, |
| 417 | + expected_conclusion, |
398 | 418 | expected_type, |
399 | 419 | expected_error, |
400 | 420 | expected_submissions, |
@@ -423,6 +443,7 @@ def test_request( |
423 | 443 | assert result.ok |
424 | 444 |
|
425 | 445 | request = json.loads(result.stdout) |
| 446 | + assert request["conclusion"] == expected_conclusion |
426 | 447 | assert request["type"] == expected_type |
427 | 448 | assert request["error"] == expected_error |
428 | 449 | assert request["submissions"] == expected_submissions |
|
0 commit comments