tests: add test_if_generate_latex_file_can_create_a_new_directory

This commit is contained in:
Sina Atalay 2024-03-17 20:24:37 +01:00
parent d1aa96e25a
commit 8367531bcd
1 changed files with 11 additions and 0 deletions

View File

@ -329,6 +329,17 @@ def test_generate_latex_file(
) )
def test_if_generate_latex_file_can_create_a_new_directory(
tmp_path, rendercv_data_model
):
new_directory = tmp_path / "new_directory"
new_directory.mkdir()
latex_file_path = r.generate_latex_file(rendercv_data_model, new_directory)
assert latex_file_path.exists()
@pytest.mark.parametrize( @pytest.mark.parametrize(
"theme_name", "theme_name",
dm.available_themes, dm.available_themes,