@@ -86,7 +86,7 @@ def test_prepare_for_datalad(tmpdir):
86
86
os .makedirs (studydir_ )
87
87
populate_bids_templates (studydir_ )
88
88
89
- add_to_datalad (str (tmpdir ), studydir_ )
89
+ add_to_datalad (str (tmpdir ), studydir_ , None , False )
90
90
91
91
from datalad .api import Dataset
92
92
superds = Dataset (str (tmpdir ))
@@ -114,7 +114,7 @@ def test_prepare_for_datalad(tmpdir):
114
114
# Above call to add_to_datalad does not create .heudiconv subds since
115
115
# directory does not exist (yet).
116
116
# Let's first check that it is safe to call it again
117
- add_to_datalad (str (tmpdir ), studydir_ )
117
+ add_to_datalad (str (tmpdir ), studydir_ , None , False )
118
118
assert not ds .repo .dirty
119
119
120
120
old_hexsha = ds .repo .get_hexsha ()
@@ -126,7 +126,7 @@ def test_prepare_for_datalad(tmpdir):
126
126
create_file_if_missing (dummy_path , '' )
127
127
ds .add (dummy_path , message = "added a dummy file" )
128
128
# next call must not fail, should just issue a warning
129
- add_to_datalad (str (tmpdir ), studydir_ )
129
+ add_to_datalad (str (tmpdir ), studydir_ , None , False )
130
130
ds .repo .is_under_annex (dummy_path )
131
131
assert not ds .repo .dirty
132
132
assert '.heudiconv/dummy.nii.gz' in ds .repo .get_files ()
@@ -135,7 +135,7 @@ def test_prepare_for_datalad(tmpdir):
135
135
ds .repo ._git_custom_command ([], ['git' , 'reset' , '--hard' , old_hexsha ])
136
136
# now we do not add dummy to git
137
137
create_file_if_missing (dummy_path , '' )
138
- add_to_datalad (str (tmpdir ), studydir_ )
138
+ add_to_datalad (str (tmpdir ), studydir_ , None , False )
139
139
assert '.heudiconv' in ds .subdatasets (result_xfm = 'relpaths' )
140
140
assert not ds .repo .dirty
141
141
assert '.heudiconv/dummy.nii.gz' not in ds .repo .get_files ()
0 commit comments