Skip to content

Commit

Permalink
replace string concatenation with list of args
Browse files Browse the repository at this point in the history
  • Loading branch information
ziw-liu committed Jul 25, 2023
1 parent 8fdf5d0 commit 85b8285
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions recOrder/tests/cli_tests/test_reconstruct.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,14 @@ def test_reconstruct(tmp_path):
tf_path = input_path.with_name("tf.zarr")
runner.invoke(
cli,
"compute-tf "
+ str(input_path)
+ " -c "
+ str(config_path)
+ " -o "
+ str(tf_path),
catch_exceptions=False,
[
"compute-tf",
str(input_path),
"-c",
str(config_path),
"-o",
str(tf_path),
],
)
assert tf_path.exists()

Expand All @@ -64,15 +65,15 @@ def test_reconstruct(tmp_path):

result_inv = runner.invoke(
cli,
"apply-inv-tf "
+ str(input_path)
+ " "
+ str(tf_path)
+ " -c "
+ str(config_path)
+ " -o "
+ str(result_path),
catch_exceptions=False,
[
"apply-inv-tf",
str(input_path),
str(tf_path),
"-c",
str(config_path),
"-o",
str(result_path),
],
)
assert result_path.exists()
assert result_inv.exit_code == 0
Expand Down

0 comments on commit 85b8285

Please sign in to comment.