#NEWLINE# @ testing . requires_testing_data #NEWLINE# @ requires_nibabel ( ) #NEWLINE# def test_render_mri_without_bem( ) : #NEWLINE# #INDENT# 'Test rendering MRI without BEM for mne report.\n    ' #NEWLINE# tempdir = _TempDir ( ) #NEWLINE# os . mkdir ( op . join ( tempdir , 'sample' ) ) #NEWLINE# os . mkdir ( op . join ( tempdir , 'sample' , 'mri' ) ) #NEWLINE# shutil . copyfile ( mri_fname , op . join ( tempdir , 'sample' , 'mri' , 'T1.mgz' ) ) #NEWLINE# report = Report ( info_fname = raw_fname , subject = 'sample' , subjects_dir = tempdir ) #NEWLINE# with warnings . catch_warnings ( record = True ) as w : #NEWLINE# #INDENT# warnings . simplefilter ( 'always' ) #NEWLINE# report . parse_folder ( tempdir ) #NEWLINE# #UNINDENT# assert_true ( ( len ( w ) >= 1 ) ) #NEWLINE# report . save ( op . join ( tempdir , 'report.html' ) , open_browser = False )