← Về thư mục
tests/pptx/test_scripts.py
- Deck · class · L43-L77 — class Deck
- init · method · L46-L77 — def init(self, root: Path, count: int, *, orphans: int = 0) -> None
- DeckTestCase · class · L80-L84 — class DeckTestCase(unittest.TestCase)
- setUp · method · L81-L84 — def setUp(self) -> None
- SlideNumberingTests · class · L87-L107 — class SlideNumberingTests(DeckTestCase)
- test_the_first_slide_in_an_empty_deck_is_one · method · L88-L91 — def test_the_first_slide_in_an_empty_deck_is_one(self) -> None
- test_the_next_number_follows_the_highest_existing_slide · method · L93-L99 — def test_the_next_number_follows_the_highest_existing_slide(self) -> None
- test_files_that_are_not_slides_are_ignored · method · L101-L107 — def test_files_that_are_not_slides_are_ignored(self) -> None
- SourceParsingTests · class · L110-L119 — class SourceParsingTests(unittest.TestCase)
- test_a_layout_filename_is_recognised · method · L111-L114 — def test_a_layout_filename_is_recognised(self) -> None
- test_anything_else_is_treated_as_a_slide_source · method · L116-L119 — def test_anything_else_is_treated_as_a_slide_source(self) -> None
- SlideIdTests · class · L122-L144 — class SlideIdTests(unittest.TestCase)
- test_the_id_range_matches_the_ooxml_specification · method · L123-L126 — def test_the_id_range_matches_the_ooxml_specification(self) -> None: # Outside 256..2147483647 PowerPoint refuses to open the file.
- test_the_minimal_slide_xml_is_well_formed · method · L128-L131 — def test_the_minimal_slide_xml_is_well_formed(self) -> None
- test_shared_part_types_are_the_documented_set · method · L133-L137 — def test_shared_part_types_are_the_documented_set(self) -> None
- test_the_relationship_pattern_matches_both_element_forms · method · L139-L144 — def test_the_relationship_pattern_matches_both_element_forms(self) -> None
- OrphanDetectionTests · class · L147-L208 — class OrphanDetectionTests(DeckTestCase)
- test_registered_slides_are_reported_as_referenced · method · L148-L153 — def test_registered_slides_are_reported_as_referenced(self) -> None
- test_an_unregistered_slide_is_not_reported_as_referenced · method · L155-L158 — def test_an_unregistered_slide_is_not_reported_as_referenced(self) -> None
- test_only_the_orphan_is_removed · method · L160-L171 — def test_only_the_orphan_is_removed(self) -> None
- test_a_deck_with_no_orphans_loses_nothing · method · L173-L176 — def test_a_deck_with_no_orphans_loses_nothing(self) -> None
- test_a_package_with_no_slides_directory_is_a_no_op · method · L178-L179 — def test_a_package_with_no_slides_directory_is_a_no_op(self) -> None
- test_an_unreadable_presentation_refuses_rather_than_deleting_everything · method · L181-L202 — def test_an_unreadable_presentation_refuses_rather_than_deleting_everything( self, ) -> None: # If sldIdLst cannot be parsed, every slide looks orphaned. Deleting # them would destroy the deck, so the tool must refuse instead.
- test_the_rels_file_goes_with_its_slide · method · L204-L208 — def test_the_rels_file_goes_with_its_slide(self) -> None
- TrashRemovalTests · class · L211-L222 — class TrashRemovalTests(DeckTestCase)
- test_a_trash_directory_is_removed · method · L212-L219 — def test_a_trash_directory_is_removed(self) -> None: # The directory PowerPoint leaves behind is literally named "[trash]".
- test_a_package_without_one_is_untouched · method · L221-L222 — def test_a_package_without_one_is_untouched(self) -> None
- ThumbnailConstantTests · class · L225-L232 — class ThumbnailConstantTests(unittest.TestCase)
- test_the_grid_constants_are_sane · method · L226-L232 — def test_the_grid_constants_are_sane(self) -> None