File tree 1 file changed +5
-5
lines changed 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ def temp_style(style_name, settings=None):
33
33
yield
34
34
finally :
35
35
shutil .rmtree (tempdir )
36
+ style .reload_library ()
36
37
37
38
38
39
def test_available ():
@@ -43,15 +44,14 @@ def test_available():
43
44
def test_use ():
44
45
mpl .rcParams [PARAM ] = 'gray'
45
46
with temp_style ('test' , DUMMY_SETTINGS ):
46
- style .use ('test' )
47
- assert mpl .rcParams [PARAM ] == VALUE
47
+ with style .context ('test' ):
48
+ assert mpl .rcParams [PARAM ] == VALUE
48
49
49
50
50
51
def test_use_url ():
51
52
with temp_style ('test' , DUMMY_SETTINGS ):
52
- style .use ('https://gist.github.com/adrn/6590261/raw' )
53
-
54
- assert mpl .rcParams ['axes.facecolor' ] == "#adeade"
53
+ with style .context ('https://gist.github.com/adrn/6590261/raw' ):
54
+ assert mpl .rcParams ['axes.facecolor' ] == "#adeade"
55
55
56
56
57
57
def test_context ():
You can’t perform that action at this time.
0 commit comments