Skip to content

Commit 26b07ce

Browse files
committed
add template for tests to confirm grouping behaviour
1 parent 798af70 commit 26b07ce

File tree

1 file changed

+9
-23
lines changed

1 file changed

+9
-23
lines changed

tests/test_grouping.py

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,23 @@
1-
def test_grouping_using_files_flag():
2-
with automagic datalad:
3-
4-
5-
# check that default grouping is x
6-
7-
8-
# check that grouping by accession number works
9-
1+
from datalad import auto,api
102

11-
# check that grouping by studyUID works
3+
api.install( 'dbic/QA','http://datasets.datalad.org')
124

5+
def test_grouping_using_files_flag():
136

14-
# check that grouping by all works
15-
16-
17-
18-
# check default behaviour of grouping by tar
19-
7+
with auto.AutomagicIO():
208

21-
def test_grouping_using_dicom_template():
229

23-
with automagic datalad:
10+
# default grouping is studyUID
2411

25-
# check that default grouping is when subject and session is passed is all
2612

13+
# group by accession number
2714

28-
# check that heudiconv fails when grouping is set to something other than all and session is passed
2915

16+
# group by studyUID
3017

31-
# check that grouping by accession number works
3218

19+
# group by all
3320

34-
# check that grouping by all does not group by tars, studyUID or accession number
3521

22+
# group by tar
3623

37-
# check

0 commit comments

Comments
 (0)