@@ -279,7 +279,8 @@ def test_add_slider_to_section():
279
279
subject = 'sample' , subjects_dir = subjects_dir )
280
280
section = 'slider_section'
281
281
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'
283
284
report .save (op .join (tempdir , 'report.html' ), open_browser = False )
284
285
285
286
pytest .raises (NotImplementedError , report .add_slider_to_section ,
@@ -348,7 +349,8 @@ def test_remove():
348
349
r = Report ()
349
350
fig1 , fig2 = _get_example_figures ()
350
351
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' )
352
354
r .add_figs_to_section (fig2 , 'figure1' , 'mysection' )
353
355
r .add_figs_to_section (fig2 , 'figure2' , 'mysection' )
354
356
0 commit comments