Skip to content

Commit bafb5d0

Browse files
committed
Fix issue after rebase.
1 parent 14911d3 commit bafb5d0

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

tests/tests_integration/test_ssh_file_transfer.py

+12-6
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def ssh_setup(self, pathtable_and_project):
8383
ssh_test_utils.setup_project_and_container_for_ssh(project)
8484
ssh_test_utils.setup_ssh_connection(project)
8585

86-
project.upload_all()
86+
project.upload_rawdata()
8787

8888
return [pathtable, project]
8989

@@ -122,7 +122,9 @@ def test_combinations_filesystem_transfer(
122122
swap_last_folder_only=False,
123123
)[0]
124124

125-
transfer_function("rawdata", sub_names, ses_names, datatype, init_log=False)
125+
transfer_function(
126+
"rawdata", sub_names, ses_names, datatype, init_log=False
127+
)
126128

127129
if upload_or_download == "download":
128130
test_utils.swap_local_and_central_paths(
@@ -196,7 +198,9 @@ def test_combinations_ssh_transfer(
196198
)
197199
project.update_config("central_path", tmp_central_path)
198200

199-
project.upload(sub_names, ses_names, datatype, init_log=False)
201+
project.upload_custom(
202+
"rawdata", sub_names, ses_names, datatype, init_log=False
203+
)
200204

201205
expected_transferred_paths = self.get_expected_transferred_paths(
202206
pathtable, sub_names, ses_names, datatype
@@ -225,7 +229,9 @@ def test_combinations_ssh_transfer(
225229
project.update_config("local_path", tmp_local_path)
226230
project.update_config("central_path", true_central_path)
227231

228-
project.download(sub_names, ses_names, datatype, init_log=False)
232+
project.download_custom(
233+
"rawdata", sub_names, ses_names, datatype, init_log=False
234+
)
229235

230236
# Find the transferred paths, tidy them up
231237
# and check expected paths were transferred.
@@ -281,7 +287,7 @@ def get_expected_transferred_paths(
281287
expected_paths = pd.concat([datatype_folders, extra_folders])
282288
expected_paths = expected_paths.drop_duplicates(subset="path")
283289

284-
expected_paths = self.remove_path_before_rawdata(expected_paths)
290+
expected_paths = self.remove_path_before_rawdata(expected_paths.path)
285291

286292
return expected_paths
287293

@@ -309,7 +315,7 @@ def make_pathtable_search_filter(self, sub_names, ses_names, datatype):
309315
]
310316
else:
311317
for dtype in datatype:
312-
if dtype == "all_ses_level_non_datatype":
318+
if dtype == "all_non_datatype":
313319
extra_arguments += [
314320
f"(parent_sub == '{sub}' & parent_ses == '{ses}' "
315321
f"& is_ses_level_non_datatype == True)"

0 commit comments

Comments
 (0)