mirror of
https://github.com/rendercv/rendercv.git
synced 2025-12-23 21:47:55 -05:00
Improve placeholders and JSON Schema
This commit is contained in:
@@ -135,7 +135,9 @@ design:
|
||||
with pytest.raises(typer.Exit) as _, progress:
|
||||
run_rendercv(yaml_file, progress)
|
||||
|
||||
@pytest.mark.skipif(sys.platform == "win32", reason="chmod doesn't work the same on Windows")
|
||||
@pytest.mark.skipif(
|
||||
sys.platform == "win32", reason="chmod doesn't work the same on Windows"
|
||||
)
|
||||
def test_os_error_unreadable_file(self, tmp_path):
|
||||
"""Test that OSError is properly caught when file is unreadable."""
|
||||
yaml_file = tmp_path / "unreadable.yaml"
|
||||
|
||||
@@ -159,7 +159,10 @@ class TestProcessDoi:
|
||||
("This is a summary", "!!! summary\n This is a summary"),
|
||||
("Short", "!!! summary\n Short"),
|
||||
("Multi word summary text", "!!! summary\n Multi word summary text"),
|
||||
("This is a multi-line summary\nwith two lines", "!!! summary\n This is a multi-line summary\n with two lines"),
|
||||
(
|
||||
"This is a multi-line summary\nwith two lines",
|
||||
"!!! summary\n This is a multi-line summary\n with two lines",
|
||||
),
|
||||
],
|
||||
)
|
||||
def test_process_summary(summary, expected):
|
||||
|
||||
@@ -178,7 +178,7 @@ class TestEscapeTypstCharacters:
|
||||
(
|
||||
"!!! summary\n This is a multi-line summary\n with two lines",
|
||||
"#summary[This is a multi-line summary \\ with two lines]",
|
||||
)
|
||||
),
|
||||
],
|
||||
)
|
||||
def test_markdown_to_typst(markdown_string, expected_typst_string):
|
||||
|
||||
Reference in New Issue
Block a user