Skip to content

Commit

Permalink
fix bugs in 2 tests - --source instead of --src
Browse files Browse the repository at this point in the history
  • Loading branch information
niradar committed May 28, 2024
1 parent ddf300b commit e294a4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_simple_usecases.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def test_non_existing_source_folder(setup_teardown):
_, target_dir, move_to_dir, _ = setup_teardown
source_dir = os.path.join(TEMP_DIR, "non_existing_folder")
setup_test_files([], range(1, 6))
custom_args = ["--source", source_dir, "--target", target_dir, "--move_to", move_to_dir, "--run"]
custom_args = ["--src", source_dir, "--target", target_dir, "--move_to", move_to_dir, "--run"]

with pytest.raises(SystemExit) as excinfo:
args = parse_arguments(custom_args)
Expand All @@ -40,7 +40,7 @@ def test_non_existing_target_folder(setup_teardown):
source_dir, _, move_to_dir, _ = setup_teardown
target_dir = os.path.join(TEMP_DIR, "non_existing_folder")
setup_test_files(range(1, 6), [])
custom_args = ["--source", source_dir, "--target", target_dir, "--move_to", move_to_dir, "--run"]
custom_args = ["--src", source_dir, "--target", target_dir, "--move_to", move_to_dir, "--run"]

with pytest.raises(SystemExit) as excinfo:
args = parse_arguments(custom_args)
Expand Down

0 comments on commit e294a4c

Please sign in to comment.