From 1ffceef9f09358fb390020454063a6628092d7bd Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 10 Nov 2024 09:27:10 +0100 Subject: [PATCH] tests: Improve test further --- tests/commands/test_commands.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/commands/test_commands.py b/tests/commands/test_commands.py index d65c109f2..a6c195f2f 100644 --- a/tests/commands/test_commands.py +++ b/tests/commands/test_commands.py @@ -613,12 +613,14 @@ def test_start_new_strategy(caplog, user_dir): "--strategy", "CoolNewStrategy", "--strategy-path", - str(user_dir / "nonexistant"), + str(user_dir / "nonexistent"), ] start_new_strategy(get_args(args)) assert (user_dir / "CoolNewStrategy.py").exists() assert log_has_re("Creating strategy directory .*", caplog) + assert (user_dir / "nonexistent").is_dir() + assert (user_dir / "nonexistent" / "CoolNewStrategy.py").exists() shutil.rmtree(str(user_dir))