MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_use_url

Function test_use_url

lib/matplotlib/tests/test_style.py:71–79  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

69
70
71def 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
82def test_single_path(tmp_path):

Callers

nothing calls this directly

Calls 2

temp_styleFunction · 0.85
resolveMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…