Improve placeholders and JSON Schema

This commit is contained in:
Sina Atalay
2025-12-12 13:29:15 +03:00
parent cfb4820c68
commit 547b6dc806
6 changed files with 217 additions and 103 deletions

View File

@@ -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"

View File

@@ -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):

View File

@@ -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):