From 5790abca6586ddc7ec08cce1d664223787d23025 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Thu, 20 Jun 2024 13:55:15 +0300 Subject: [PATCH] tests: improve cli tests --- tests/test_cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()