← Về thư mục
tests/xlsx/test_scripts.py
- CommandLineTests · class · L37-L60 — class CommandLineTests(unittest.TestCase)
- _run · method · L40-L50 — def _run(self, *args: str)
- test_no_arguments_prints_usage · method · L52-L55 — def test_no_arguments_prints_usage(self) -> None
- test_the_usage_text_documents_the_force_flag · method · L57-L60 — def test_the_usage_text_documents_the_force_flag(self) -> None: # --force is the escape hatch past the external-link guard; it has to # be discoverable or people will not know the guard can be overridden.
- ExternalReferencePatternTests · class · L63-L87 — class ExternalReferencePatternTests(unittest.TestCase)
- test_bracketed_workbook_references_match · method · L66-L73 — def test_bracketed_workbook_references_match(self) -> None
- test_ordinary_local_formulas_do_not_match · method · L75-L84 — def test_ordinary_local_formulas_do_not_match(self) -> None
- test_the_reported_location_cap_is_positive · method · L86-L87 — def test_the_reported_location_cap_is_positive(self) -> None
- WorkbookTestCase · class · L90-L105 — class WorkbookTestCase(unittest.TestCase)
- setUp · method · L91-L94 — def setUp(self) -> None
- workbook · method · L96-L105 — def workbook(self, name: str = "book.xlsx", **cells) -> Path
- ExternalLinkRiskTests · class · L108-L137 — class ExternalLinkRiskTests(WorkbookTestCase)
- test_a_workbook_with_no_external_links_is_never_at_risk · method · L109-L111 — def test_a_workbook_with_no_external_links_is_never_at_risk(self) -> None
- test_a_non_workbook_file_is_reported_as_no_risk_rather_than_raising · method · L113-L116 — def test_a_non_workbook_file_is_reported_as_no_risk_rather_than_raising(self) -> None
- test_a_missing_file_is_reported_as_no_risk · method · L118-L121 — def test_a_missing_file_is_reported_as_no_risk(self) -> None
- test_the_check_reads_the_package_without_modifying_it · method · L123-L127 — def test_the_check_reads_the_package_without_modifying_it(self) -> None
- test_a_workbook_without_the_external_links_part_short_circuits · method · L129-L137 — def test_a_workbook_without_the_external_links_part_short_circuits(self) -> None: # The function returns early unless xl/externalLinks/ exists, so the # common case never pays for two full workbook loads.
- MacroSetupTests · class · L140-L159 — class MacroSetupTests(WorkbookTestCase)
- test_the_macro_module_is_written_into_the_profile · method · L141-L146 — def test_the_macro_module_is_written_into_the_profile(self) -> None
- test_the_macro_xml_is_well_formed · method · L148-L151 — def test_the_macro_xml_is_well_formed(self) -> None
- test_setup_is_idempotent · method · L153-L159 — def test_setup_is_idempotent(self) -> None
- RecalcGuardTests · class · L162-L181 — class RecalcGuardTests(WorkbookTestCase)
- test_a_missing_soffice_is_reported_clearly · method · L163-L170 — def test_a_missing_soffice_is_reported_clearly(self) -> None
- test_the_missing_soffice_message_names_libreoffice · method · L172-L173 — def test_the_missing_soffice_message_names_libreoffice(self) -> None
- test_the_timestamp_helper_reports_a_files_mtime · method · L175-L178 — def test_the_timestamp_helper_reports_a_files_mtime(self) -> None
- test_the_timeout_helper_answers_without_raising · method · L180-L181 — def test_the_timeout_helper_answers_without_raising(self) -> None