Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeZiminski committed Oct 4, 2023
1 parent 54280ec commit 202d3cb
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/tests_integration/test_command_line_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,15 @@ def test_make_config_file_non_default_variables(self, tmp_path):
def test_make_sub_folders_variable(self, sep):
stdout, _ = test_utils.run_cli(
f" make{sep}sub{sep}folders "
f"--data_type all "
f"--datatype all "
f"--sub_names 001 "
f"--ses_names 002 "
)

args_, kwargs_ = self.decode(stdout)

assert args_ == []
assert kwargs_["data_type"] == ["all"]
assert kwargs_["datatype"] == ["all"]
assert kwargs_["sub_names"] == ["001"]
assert kwargs_["ses_names"] == ["002"]

Expand All @@ -195,7 +195,7 @@ def test_upload_download_variables(self, upload_or_download, sep):
"""
stdout, _ = test_utils.run_cli(
f" {upload_or_download} "
f"--data{sep}type all "
f"--datatype all "
f"--sub{sep}names one "
f"--ses{sep}names two"
)
Expand All @@ -205,7 +205,7 @@ def test_upload_download_variables(self, upload_or_download, sep):

stdout, _ = test_utils.run_cli(
f" {upload_or_download} "
f"--data{sep}type all "
f"--datatype all "
f"--sub{sep}names one "
f"--ses{sep}names two "
f"--dry{sep}run"
Expand Down Expand Up @@ -282,14 +282,14 @@ def test_multiple_inputs(self, command):
"""
stdout, stderr = test_utils.run_cli(
f"{command} "
f"--data_type all "
f"--datatype all "
f"--sub_names one two 3 sub-004 sub-w23@ "
f"--ses_names 5 06 007"
)

_, kwargs_ = self.decode(stdout)

assert kwargs_["data_type"] == ["all"]
assert kwargs_["datatype"] == ["all"]
assert kwargs_["sub_names"] == [
"one",
"two",
Expand Down Expand Up @@ -400,7 +400,7 @@ def test_make_sub_folders(self, setup_project):
ses = ["ses-123", "ses-999"]

test_utils.run_cli(
f"make_sub_folders --data_type all --sub_names {self.to_cli_input(subs)} --ses_names {self.to_cli_input(ses)} ", # noqa
f"make_sub_folders --datatype all --sub_names {self.to_cli_input(subs)} --ses_names {self.to_cli_input(ses)} ", # noqa
setup_project.project_name,
)

Expand Down Expand Up @@ -448,7 +448,7 @@ def test_upload_and_download(
elif transfer_method == "standard":
test_utils.run_cli(
f"{upload_or_download} "
f"--data_type all "
f"--datatype all "
f"--sub_names all "
f"--ses_names all",
setup_project.project_name,
Expand Down Expand Up @@ -647,7 +647,7 @@ def check_kwargs(self, required_options, kwargs_):
assert kwargs_ == {}

def check_upload_download_args(self, args_, kwargs_, dry_run_is):
assert kwargs_["data_type"] == ["all"]
assert kwargs_["datatype"] == ["all"]
assert kwargs_["sub_names"] == ["one"]
assert kwargs_["ses_names"] == ["two"]
assert kwargs_["dry_run"] is dry_run_is
Expand Down

0 comments on commit 202d3cb

Please sign in to comment.