From f6eb8b48c28e5d181dad56586fa100466efabe51 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Sat, 25 Jan 2025 18:00:39 -0500 Subject: [PATCH] tests: update api test --- tests/test_api.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/test_api.py b/tests/test_api.py index 728006ca..14a0b003 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -1,7 +1,6 @@ import rendercv -def test_rendercv(): - assert isinstance( - rendercv.create_contents_of_a_typst_file({"cv": {"name": "John Doe"}}), str - ) +def test_create_contents_of_a_typst_file(input_file_path): + yaml_string = input_file_path.read_text() + assert isinstance(rendercv.create_contents_of_a_typst_file(yaml_string), str)