@@ -279,7 +279,8 @@ def test_add_slider_to_section():
279279 subject = 'sample' , subjects_dir = subjects_dir )
280280 section = 'slider_section'
281281 figs = _get_example_figures ()
282- report .add_slider_to_section (figs , section = section )
282+ report .add_slider_to_section (figs , section = section , title = 'my title' )
283+ assert report .fnames [0 ] == 'my title-#-report_slider_section-#-custom'
283284 report .save (op .join (tempdir , 'report.html' ), open_browser = False )
284285
285286 pytest .raises (NotImplementedError , report .add_slider_to_section ,
@@ -348,7 +349,8 @@ def test_remove():
348349 r = Report ()
349350 fig1 , fig2 = _get_example_figures ()
350351 r .add_figs_to_section (fig1 , 'figure1' , 'mysection' )
351- r .add_figs_to_section (fig1 , 'figure1' , 'othersection' )
352+ r .add_slider_to_section ([fig1 , fig2 ], title = 'figure1' ,
353+ section = 'othersection' )
352354 r .add_figs_to_section (fig2 , 'figure1' , 'mysection' )
353355 r .add_figs_to_section (fig2 , 'figure2' , 'mysection' )
354356
0 commit comments