@@ -73,12 +73,13 @@ def test_function_call_without_data(func):
7373 assert (func (None , x = "x" , y = "y" , label = "text" ) ==
7474 "x: ['x'], y: ['y'], ls: x, w: xyz, label: text" )
7575
76+
7677@pytest .mark .parametrize ('func' , all_funcs , ids = all_func_ids )
7778def test_function_call_with_dict_input (func ):
7879 """Tests with dict input, unpacking via preprocess_pipeline"""
79- data = {'a' : 1 , 'b' : 2 }
80+ data = {'a' : 1 , 'b' : 2 }
8081 assert (func (None , data .keys (), data .values ()) ==
81- "x: ['a', 'b'], y: [1, 2], ls: x, w: xyz, label: None" )
82+ "x: ['a', 'b'], y: [1, 2], ls: x, w: xyz, label: None" )
8283
8384
8485@pytest .mark .parametrize ('func' , all_funcs , ids = all_func_ids )
@@ -227,25 +228,23 @@ def funcy(ax, x, y, z, t=None):
227228
228229class TestPlotTypes :
229230 plotters = [Axes .scatter , Axes .bar , Axes .plot ]
230-
231231 @pytest .mark .parametrize ('plotter' , plotters )
232232 @check_figures_equal (extensions = ['png' ])
233233 def test_dict_unpack (self , plotter , fig_test , fig_ref ):
234- x = [1 ,2 , 3 ]
235- y = [4 ,5 , 6 ]
236- ddict = dict (zip (x ,y ))
234+ x = [1 , 2 , 3 ]
235+ y = [4 , 5 , 6 ]
236+ ddict = dict (zip (x , y ))
237237
238- plotter (fig_test .subplots (),
238+ plotter (fig_test .subplots (),
239239 ddict .keys (), ddict .values ())
240240 plotter (fig_ref .subplots (), x , y )
241241
242242 @pytest .mark .parametrize ('plotter' , plotters )
243243 @check_figures_equal (extensions = ['png' ])
244244 def test_data_kwarg (self , plotter , fig_test , fig_ref ):
245- x = [1 ,2 , 3 ]
246- y = [4 ,5 , 6 ]
245+ x = [1 , 2 , 3 ]
246+ y = [4 , 5 , 6 ]
247247
248- plotter (fig_test .subplots (), 'xval' , 'yval' ,
249- data = {'xval' :x , 'yval' :y })
250- plotter (fig_ref .subplots (), x , y )
251-
248+ plotter (fig_test .subplots (), 'xval' , 'yval' ,
249+ data = {'xval' : x , 'yval' : y })
250+ plotter (fig_ref .subplots (), x , y )
0 commit comments