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

Function test_context

lib/matplotlib/tests/test_style.py:91–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89
90
91def test_context():
92 mpl.rcParams[PARAM] = 'gray'
93 with temp_style('test', DUMMY_SETTINGS):
94 with style.context('test'):
95 assert mpl.rcParams[PARAM] == VALUE
96 # Check that this value is reset after the exiting the context.
97 assert mpl.rcParams[PARAM] == 'gray'
98
99
100def test_context_with_dict():

Callers

nothing calls this directly

Calls 1

temp_styleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…