Skip to content

Commit fdd5e23

Browse files
authored
Merge pull request #353 from oesteban/fix/tests
FIX: revise tests after sloppy merge of #352
2 parents 93e85a3 + e9c5755 commit fdd5e23

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

niworkflows/reports/core.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,13 @@ class Report(object):
188188
.. doctest::
189189
190190
>>> robj = Report(testdir / 'work' / 'reportlets', testdir / 'out',
191-
... 'madeoutuuid', subject_id='01')
191+
... 'madeoutuuid', subject_id='01', packagename='fmriprep')
192192
>>> robj.layout.get(subject='01', desc='reconall')
193-
[<BIDSFile filename='fmriprep/sub-01/anat/sub-01_desc-reconall_T1w.svg'>]
193+
[<BIDSFile filename='anat/sub-01_desc-reconall_T1w.svg'>]
194194
195195
>>> robj.generate_report()
196196
0
197-
>>> len((testdir / 'out' / 'niworkflows' / 'sub-01.html').read_text())
197+
>>> len((testdir / 'out' / 'fmriprep' / 'sub-01.html').read_text())
198198
20862
199199
200200
"""
@@ -369,8 +369,8 @@ def run_reports(reportlets_dir, out_dir, subject_label, run_uuid, config=None,
369369
370370
.. doctest::
371371
372-
>>> run_reports(str(testdir / 'work' / 'reportlets'),
373-
... str(testdir / 'out'), '01', 'madeoutuuid')
372+
>>> run_reports(testdir / 'work' / 'reportlets', testdir / 'out',
373+
... '01', 'madeoutuuid', packagename='fmriprep')
374374
0
375375
376376
.. testcleanup::

0 commit comments

Comments
 (0)