This commit is contained in:
2026-06-22 08:31:19 +08:00
commit 83dfe18977
14 changed files with 534 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
from openocr_markdown.api import safe_stem
def test_safe_stem_keeps_simple_names() -> None:
assert safe_stem("invoice-01.png") == "invoice-01"
def test_safe_stem_replaces_unsafe_names() -> None:
assert safe_stem("../report 01!.pdf") == "report_01"