Skip to content

Commit 024ef1a

Browse files
authored
ensure custom test root directory exists during init (#943)
1 parent 07c3586 commit 024ef1a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

codeflash/cli_cmds/cmd_init.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,10 @@ def collect_setup_info() -> CLISetupInfo:
426426

427427
custom_tests_questions = [
428428
inquirer.Path(
429-
"custom_tests_path", message="Enter the path to your tests directory", path_type=inquirer.Path.DIRECTORY
429+
"custom_tests_path",
430+
message="Enter the path to your tests directory",
431+
path_type=inquirer.Path.DIRECTORY,
432+
exists=True,
430433
)
431434
]
432435

0 commit comments

Comments
 (0)