Commit d149ab3
assorted code updates and f string migrations (#12017)
* chore: setuponly - migrate to f string
* chore: MockTiming - move impl to _pytest.timing
* chore: fixture tests: migrate to f-strings
* chore: skipping tests: migrate to f-strings
* chore: junitxml tests: add more type annotations
* chore: junitxml tests: introduce more typesafe helpers
* add changelog
* test junitxml: split the DomNode type to express the Document/Element difference
* fixup: undo accidential name-mangling in the junitxml test helpers
* fixup: junitxml logging test - restore validation for expected output nodes
* fixup: have fake config .getini use correct types
* Update changelog/12017.improvement.rst
Co-authored-by: Bruno Oliveira <[email protected]>
* use contrib category for changelog
* use datetime.fromisoformat instead of strptime
* post rebase ruff fixes
* add extra coverage for junit test helpers
---------
Co-authored-by: Bruno Oliveira <[email protected]>1 parent 338ef90 commit d149ab3
File tree
7 files changed
+305
-232
lines changed- changelog
- src/_pytest
- testing
- python
7 files changed
+305
-232
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
83 | 79 | | |
84 | 80 | | |
85 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
14 | 50 | | |
15 | 51 | | |
16 | 52 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
233 | 232 | | |
234 | 233 | | |
235 | 234 | | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
| 235 | + | |
253 | 236 | | |
254 | 237 | | |
255 | | - | |
| 238 | + | |
256 | 239 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2315 | 2315 | | |
2316 | 2316 | | |
2317 | 2317 | | |
2318 | | - | |
| 2318 | + | |
2319 | 2319 | | |
2320 | 2320 | | |
2321 | | - | |
| 2321 | + | |
2322 | 2322 | | |
2323 | 2323 | | |
2324 | 2324 | | |
2325 | | - | |
| 2325 | + | |
2326 | 2326 | | |
2327 | 2327 | | |
2328 | 2328 | | |
| |||
2331 | 2331 | | |
2332 | 2332 | | |
2333 | 2333 | | |
2334 | | - | |
2335 | | - | |
| 2334 | + | |
2336 | 2335 | | |
2337 | 2336 | | |
2338 | 2337 | | |
| |||
3212 | 3211 | | |
3213 | 3212 | | |
3214 | 3213 | | |
3215 | | - | |
| 3214 | + | |
3216 | 3215 | | |
3217 | 3216 | | |
3218 | 3217 | | |
3219 | | - | |
| 3218 | + | |
3220 | 3219 | | |
3221 | 3220 | | |
3222 | 3221 | | |
3223 | | - | |
| 3222 | + | |
3224 | 3223 | | |
3225 | 3224 | | |
3226 | 3225 | | |
3227 | 3226 | | |
3228 | 3227 | | |
3229 | | - | |
| 3228 | + | |
3230 | 3229 | | |
3231 | 3230 | | |
3232 | 3231 | | |
| |||
3239 | 3238 | | |
3240 | 3239 | | |
3241 | 3240 | | |
3242 | | - | |
3243 | | - | |
| 3241 | + | |
3244 | 3242 | | |
3245 | 3243 | | |
3246 | 3244 | | |
| |||
3426 | 3424 | | |
3427 | 3425 | | |
3428 | 3426 | | |
3429 | | - | |
| 3427 | + | |
3430 | 3428 | | |
3431 | | - | |
| 3429 | + | |
3432 | 3430 | | |
3433 | | - | |
| 3431 | + | |
3434 | 3432 | | |
3435 | | - | |
| 3433 | + | |
3436 | 3434 | | |
3437 | 3435 | | |
3438 | 3436 | | |
3439 | 3437 | | |
3440 | 3438 | | |
3441 | 3439 | | |
3442 | | - | |
3443 | | - | |
| 3440 | + | |
3444 | 3441 | | |
3445 | 3442 | | |
3446 | 3443 | | |
3447 | 3444 | | |
3448 | 3445 | | |
3449 | 3446 | | |
3450 | | - | |
| 3447 | + | |
3451 | 3448 | | |
3452 | | - | |
| 3449 | + | |
3453 | 3450 | | |
3454 | | - | |
| 3451 | + | |
3455 | 3452 | | |
3456 | | - | |
| 3453 | + | |
3457 | 3454 | | |
3458 | 3455 | | |
3459 | 3456 | | |
3460 | 3457 | | |
3461 | 3458 | | |
3462 | 3459 | | |
3463 | | - | |
3464 | | - | |
| 3460 | + | |
3465 | 3461 | | |
3466 | 3462 | | |
3467 | 3463 | | |
| |||
0 commit comments