Skip to content

Commit 03851cc

Browse files
committed
fix(tests): update doctests and add one more test
1 parent 06e9663 commit 03851cc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

niworkflows/reports/core.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,15 @@ class Reportlet(Element):
7979
>>> r.name
8080
'datatype-anat_desc-reconall'
8181
82+
>>> r.components[0][0].startswith('<img')
83+
True
84+
85+
>>> r = Reportlet(bl, out_figs, config={
86+
... 'title': 'Some Title', 'bids': {'datatype': 'anat', 'desc': 'reconall'},
87+
... 'description': 'Some description', 'static': False})
88+
>>> r.name
89+
'datatype-anat_desc-reconall'
90+
8291
>>> r.components[0][0].startswith('<object')
8392
True
8493

0 commit comments

Comments
 (0)