From 265145c26d4b4e94a1c1160c45883c16dbe263a9 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Sun, 4 Feb 2024 21:50:12 +0100 Subject: [PATCH] add a test for get_a_sample_data_model --- tests/test_data_models.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_data_models.py b/tests/test_data_models.py index dcd0e9b..5e35c1e 100644 --- a/tests/test_data_models.py +++ b/tests/test_data_models.py @@ -142,6 +142,15 @@ def test_markdown_to_latex(markdown_string, expected_latex_string): assert dm.markdown_to_latex(markdown_string) == expected_latex_string +# read input file + + +def test_get_a_sample_data_model(): + data_model = dm.get_a_sample_data_model("John Doe") + assert isinstance(data_model, dm.RenderCVDataModel) + +# generate json schema + @pytest.mark.parametrize( "start_date, end_date, date, expected_date_string, expected_time_span", [