From 8367531bcdf2003207ea5b74a7f7a8ebf907b414 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Sun, 17 Mar 2024 20:24:37 +0100 Subject: [PATCH] tests: add test_if_generate_latex_file_can_create_a_new_directory --- tests/test_renderer.py | 11 +++++++++++ 1 file changed, 11 insertions(+) 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,