diff --git a/tests/test_cli.py b/tests/test_cli.py index 329b68b..7d5191b 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -460,10 +460,12 @@ def test_new_command_with_invalid_theme(tmp_path): def test_new_command_with_dont_create_files(tmp_path, option, folder_name): # change the current working directory to the temporary directory: os.chdir(tmp_path) - runner.invoke(cli.app, ["new", "Jahn Doe", option]) + result = runner.invoke(cli.app, ["new", "Jahn Doe", option]) source_files_path = tmp_path / folder_name + assert folder_name not in result.stdout + assert not source_files_path.exists()