Commit 765e08e
committed
TST: use pytest name in naming files for check_figures_equal
If you stacked `pytest.mark.parametrize` with check_figures_equal
every pass through would write to the same files. This:
- add a pytest_pyfunc_call implementation hook to monkey-patch the
test name onto the function
- has the wrapper function check for the monkey-patched name and use
that for the base file name1 parent dbc35a9 commit 765e08e
File tree
3 files changed
+12
-5
lines changed- lib/matplotlib
- testing
- tests
3 files changed
+12
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
32 | 39 | | |
33 | 40 | | |
34 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
| 392 | + | |
| 393 | + | |
392 | 394 | | |
393 | 395 | | |
394 | 396 | | |
395 | 397 | | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
| 398 | + | |
| 399 | + | |
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
0 commit comments