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)