(tmp_path)
| 69 | |
| 70 | |
| 71 | def test_use_url(tmp_path): |
| 72 | path = tmp_path / 'file' |
| 73 | path.write_text('axes.facecolor: adeade', encoding='utf-8') |
| 74 | with temp_style('test', DUMMY_SETTINGS): |
| 75 | url = ('file:' |
| 76 | + ('///' if sys.platform == 'win32' else '') |
| 77 | + path.resolve().as_posix()) |
| 78 | with style.context(url): |
| 79 | assert mpl.rcParams['axes.facecolor'] == "#adeade" |
| 80 | |
| 81 | |
| 82 | def test_single_path(tmp_path): |
nothing calls this directly
no test coverage detected
searching dependent graphs…