diff --git a/tests/test_renderer.py b/tests/test_renderer.py index 84825a7..0c69987 100644 --- a/tests/test_renderer.py +++ b/tests/test_renderer.py @@ -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( "theme_name", dm.available_themes,