mirror of https://github.com/eyhc1/rendercv.git
add a test for get_a_sample_data_model
This commit is contained in:
parent
0c70cd25b0
commit
265145c26d
|
@ -142,6 +142,15 @@ def test_markdown_to_latex(markdown_string, expected_latex_string):
|
||||||
assert dm.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(
|
@pytest.mark.parametrize(
|
||||||
"start_date, end_date, date, expected_date_string, expected_time_span",
|
"start_date, end_date, date, expected_date_string, expected_time_span",
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in New Issue