← Về thư mục
tests/liteparse/test_scripts.py
- text_item · function · L37-L47 — def text_item(text: str = "hello")
- parse_result · function · L50-L54 — def parse_result(text: str = "hello")
- StubParser · class · L57-L67 — class StubParser
- init · method · L60-L61 — def init(self) -> None
- parse · method · L63-L67 — def parse(self, path: Path)
- ExtensionTests · class · L70-L82 — class ExtensionTests(unittest.TestCase)
- test_the_default_set_is_lowercase_and_dotted · method · L71-L76 — def test_the_default_set_is_lowercase_and_dotted(self) -> None
- test_the_documented_document_and_image_families_are_covered · method · L78-L82 — def test_the_documented_document_and_image_families_are_covered(self) -> None
- DiscoveryTests · class · L85-L134 — class DiscoveryTests(unittest.TestCase)
- setUp · method · L86-L89 — def setUp(self) -> None
- touch · method · L91-L95 — def touch(self, relative: str) -> Path
- _found · method · L97-L100 — def _found(self, **kwargs) -> list[str]
- test_only_supported_extensions_are_yielded · method · L102-L106 — def test_only_supported_extensions_are_yielded(self) -> None
- test_matching_is_case_insensitive · method · L108-L110 — def test_matching_is_case_insensitive(self) -> None
- test_an_explicit_extension_narrows_the_selection · method · L112-L115 — def test_an_explicit_extension_narrows_the_selection(self) -> None
- test_an_explicit_extension_is_matched_case_insensitively · method · L117-L119 — def test_an_explicit_extension_is_matched_case_insensitively(self) -> None
- test_recursion_is_opt_in · method · L121-L125 — def test_recursion_is_opt_in(self) -> None
- test_directories_are_skipped · method · L127-L129 — def test_directories_are_skipped(self) -> None
- test_the_order_is_deterministic · method · L131-L134 — def test_the_order_is_deterministic(self) -> None
- SerialisationTests · class · L137-L158 — class SerialisationTests(unittest.TestCase)
- test_a_result_becomes_a_json_serialisable_dictionary · method · L138-L142 — def test_a_result_becomes_a_json_serialisable_dictionary(self) -> None
- test_page_geometry_and_text_items_survive · method · L144-L148 — def test_page_geometry_and_text_items_survive(self) -> None
- test_a_text_item_keeps_its_position_font_and_confidence · method · L150-L158 — def test_a_text_item_keeps_its_position_font_and_confidence(self) -> None
- ParseOneTests · class · L161-L215 — class ParseOneTests(unittest.TestCase)
- setUp · method · L162-L168 — def setUp(self) -> None
- test_text_output_writes_the_plain_text · method · L170-L179 — def test_text_output_writes_the_plain_text(self) -> None
- test_json_output_writes_the_structured_result · method · L181-L189 — def test_json_output_writes_the_structured_result(self) -> None
- test_a_failing_document_is_reported_not_raised · method · L191-L199 — def test_a_failing_document_is_reported_not_raised(self) -> None: # One corrupt file must not abort a hundred-document batch.
- test_the_output_name_comes_from_the_source_stem · method · L201-L211 — def test_the_output_name_comes_from_the_source_stem(self) -> None: # Consequence: report.pdf and report.docx both write report.txt.
- test_an_unknown_format_falls_back_to_text · method · L213-L215 — def test_an_unknown_format_falls_back_to_text(self) -> None