diff --git a/tests/test_integration_rename.py b/tests/test_integration_rename.py index 1f91a3c..36eaff3 100644 --- a/tests/test_integration_rename.py +++ b/tests/test_integration_rename.py @@ -16,3 +16,18 @@ def test_no_files(tmp_path: Path, cwd, mocker: MockerFixture): # WHEN with cwd(tmp_path): main() + + @staticmethod + def test_no_matching_files(tmp_path: Path, cwd, mocker: MockerFixture): + # GIVEN + mocker.patch("sys.argv", ["stub_name", "rename", "input", "output"]) + for file in (files := ["file_1", "file_2"]): + (tmp_path / file).write_text("") + + # WHEN + with cwd(tmp_path): + main() + + # THEN + for file in files: + assert (tmp_path / file).is_file()