@@ -58,7 +58,7 @@ def test_null_movie_writer(anim):
58
58
assert writer ._count == anim .save_count
59
59
60
60
61
- @pytest .mark .parametrize ('anim' , [dict (fixture = dict )], indirect = ['anim' ])
61
+ @pytest .mark .parametrize ('anim' , [dict (klass = dict )], indirect = ['anim' ])
62
62
def test_animation_delete (anim ):
63
63
anim = animation .FuncAnimation (** anim )
64
64
with pytest .warns (Warning , match = 'Animation was deleted' ):
@@ -136,19 +136,19 @@ def animate(i):
136
136
line .set_data (x , y )
137
137
return line ,
138
138
139
- # "fixture " can be passed to determine the class returned by the fixture
139
+ # "klass " can be passed to determine the class returned by the fixture
140
140
kwargs = dict (getattr (request , 'param' , {})) # make a copy
141
- fixture = kwargs .pop ('fixture ' , animation .FuncAnimation )
141
+ klass = kwargs .pop ('klass ' , animation .FuncAnimation )
142
142
if 'frames' not in kwargs :
143
143
kwargs ['frames' ] = 5
144
- return fixture (fig = fig , func = animate , init_func = init , ** kwargs )
144
+ return klass (fig = fig , func = animate , init_func = init , ** kwargs )
145
145
146
146
147
147
# Smoke test for saving animations. In the future, we should probably
148
148
# design more sophisticated tests which compare resulting frames a-la
149
149
# matplotlib.testing.image_comparison
150
150
@pytest .mark .parametrize ('writer, output' , WRITER_OUTPUT )
151
- @pytest .mark .parametrize ('anim' , [dict (fixture = dict )], indirect = ['anim' ])
151
+ @pytest .mark .parametrize ('anim' , [dict (klass = dict )], indirect = ['anim' ])
152
152
def test_save_animation_smoketest (tmpdir , writer , output , anim ):
153
153
if not animation .writers .is_available (writer ):
154
154
pytest .skip ("writer '%s' not available on this system" % writer )
@@ -186,7 +186,7 @@ def test_save_animation_smoketest(tmpdir, writer, output, anim):
186
186
('html5' , '<video width' ),
187
187
('jshtml' , '<script ' )
188
188
])
189
- @pytest .mark .parametrize ('anim' , [dict (fixture = dict )], indirect = ['anim' ])
189
+ @pytest .mark .parametrize ('anim' , [dict (klass = dict )], indirect = ['anim' ])
190
190
def test_animation_repr_html (writer , html , want , anim ):
191
191
# create here rather than in the fixture otherwise we get __del__ warnings
192
192
# about producing no output
0 commit comments