File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ import os
2
+ from heudiconv .utils import (
3
+ get_known_heuristics_with_descriptions ,
4
+ get_heuristic_description
5
+ )
6
+
7
+
8
+ def test_get_known_heuristics_with_descriptions ():
9
+ d = get_known_heuristics_with_descriptions ()
10
+ assert {'reproin' , 'convertall' }.issubset (d )
11
+ # ATM we include all, not only those two
12
+ assert len (d ) > 2
13
+ assert len (d ['reproin' ]) > 50 # it has a good one
14
+ assert len (d ['reproin' ].split (os .sep )) == 1 # but just one line
15
+
16
+
17
+ def test_get_heuristic_description ():
18
+ desc = get_heuristic_description ('reproin' , full = True )
19
+ assert len (desc ) > 1000
20
+ # and we describe such details as
21
+ assert '_ses-' in desc
22
+ assert '_run-' in desc
23
+ # and mention ReproNim ;)
24
+ assert 'ReproNim' in desc
You can’t perform that action at this time.
0 commit comments