@@ -142,9 +142,15 @@ def test_combinations_filesystem_transfer(
142142 pass
143143
144144 @pytest .mark .skipif ("not TEST_SSH" , reason = "TEST_SSH is false" )
145- @pytest .mark .parametrize ("sub_names" , [["all" ], ["all_non_sub" , "sub-002" ]])
146- @pytest .mark .parametrize ("ses_names" , [["all" ], ["ses-002_random-key" ], ["all_non_ses" ]])
147- @pytest .mark .parametrize ("datatype" , [["all" ], ["anat" , "all_ses_level_non_datatype" ]])
145+ @pytest .mark .parametrize (
146+ "sub_names" , [["all" ], ["all_non_sub" , "sub-002" ]]
147+ )
148+ @pytest .mark .parametrize (
149+ "ses_names" , [["all" ], ["ses-002_random-key" ], ["all_non_ses" ]]
150+ )
151+ @pytest .mark .parametrize (
152+ "datatype" , [["all" ], ["anat" , "all_ses_level_non_datatype" ]]
153+ )
148154 def test_combinations_ssh_transfer (
149155 self ,
150156 ssh_setup ,
@@ -160,7 +166,9 @@ def test_combinations_ssh_transfer(
160166 pathtable , project = ssh_setup
161167
162168 true_central_path = project .cfg ["central_path" ]
163- tmp_central_path = project .cfg ["central_path" ] / "tmp" / project .project_name
169+ tmp_central_path = (
170+ project .cfg ["central_path" ] / "tmp" / project .project_name
171+ )
164172 project .update_config ("central_path" , tmp_central_path )
165173
166174 project .upload (sub_names , ses_names , datatype , init_log = False )
@@ -185,20 +193,18 @@ def test_combinations_ssh_transfer(
185193
186194 with paramiko .SSHClient () as client :
187195 ssh .connect_client (client , project .cfg )
188- client .exec_command (
189- f"rm -rf { (tmp_central_path ).as_posix ()} "
190- )
196+ client .exec_command (f"rm -rf { (tmp_central_path ).as_posix ()} " )
191197
192198 true_local_path = project .cfg ["local_path" ]
193- tmp_local_path = project .cfg ["local_path" ] / "tmp" / project .project_name
199+ tmp_local_path = (
200+ project .cfg ["local_path" ] / "tmp" / project .project_name
201+ )
194202 tmp_local_path .mkdir (exist_ok = True , parents = True )
195203
196204 project .update_config ("local_path" , tmp_local_path )
197205 project .update_config ("central_path" , true_central_path )
198206
199- project .download (
200- sub_names , ses_names , datatype , init_log = False
201- )
207+ project .download (sub_names , ses_names , datatype , init_log = False )
202208
203209 all_transferred = list ((tmp_local_path / "rawdata" ).glob ("**/*" ))
204210 all_transferred = [
0 commit comments