mirror of
https://github.com/rendercv/rendercv.git
synced 2026-06-09 09:15:43 -04:00
cli: fix created_files_and_folders_string
This commit is contained in:
@@ -842,6 +842,7 @@ def cli_command_new(
|
||||
dm.create_a_sample_yaml_input_file(
|
||||
input_file_path, name=full_name, theme=theme
|
||||
)
|
||||
created_files_and_folders.append(input_file_path.name)
|
||||
except ValueError as e:
|
||||
error(e)
|
||||
|
||||
|
||||
@@ -426,12 +426,16 @@ def test_render_command_with_invalid_arguments(
|
||||
def test_new_command(tmp_path):
|
||||
# change the current working directory to the temporary directory:
|
||||
os.chdir(tmp_path)
|
||||
runner.invoke(cli.app, ["new", "Jahn Doe"])
|
||||
result = runner.invoke(cli.app, ["new", "Jahn Doe"])
|
||||
|
||||
markdown_source_files_path = tmp_path / "markdown"
|
||||
theme_source_files_path = tmp_path / "classic"
|
||||
input_file_path = tmp_path / "Jahn_Doe_CV.yaml"
|
||||
|
||||
assert "Jahn_Doe_CV.yaml" in result.stdout
|
||||
assert "markdown" in result.stdout
|
||||
assert "classic" in result.stdout
|
||||
|
||||
assert markdown_source_files_path.exists()
|
||||
assert theme_source_files_path.exists()
|
||||
assert input_file_path.exists()
|
||||
|
||||
Reference in New Issue
Block a user