← Về thư mục
tests/pptx-posters/test_scripts.py
- write_minimal_pptx · function · L72-L91 — def write_minimal_pptx( path: Path, *, content_types: str = CONTENT_TYPES, root_relationships: str = ROOT_RELS, extras: dict[str, bytes] | None = None, ) -> None
- ManifestTests · class · L94-L391 — class ManifestTests(unittest.TestCase)
- test_complete_synthetic_manifest_passes · method · L95-L107 — def test_complete_synthetic_manifest_passes(self) -> None
- test_placeholder_fails_closed · method · L109-L118 — def test_placeholder_fails_closed(self) -> None
- test_unknown_exact_source_id_is_rejected · method · L120-L129 — def test_unknown_exact_source_id_is_rejected(self) -> None
- test_title_must_be_first_in_reading_order · method · L131-L143 — def test_title_must_be_first_in_reading_order(self) -> None
- test_asset_requires_explicit_provenance · method · L145-L157 — def test_asset_requires_explicit_provenance(self) -> None
- test_long_description_is_source_bound_and_follows_image · method · L159-L209 — def test_long_description_is_source_bound_and_follows_image(self) -> None
- test_content_change_invalidates_author_approval · method · L211-L220 — def test_content_change_invalidates_author_approval(self) -> None
- test_control_characters_are_rejected_before_generation · method · L222-L232 — def test_control_characters_are_rejected_before_generation(self) -> None
- test_remote_asset_path_is_rejected · method · L234-L246 — def test_remote_asset_path_is_rejected(self) -> None
- test_qr_requires_exact_visible_fallback_url · method · L248-L300 — def test_qr_requires_exact_visible_fallback_url(self) -> None
- test_bad_declared_contrast_is_rejected · method · L302-L311 — def test_bad_declared_contrast_is_rejected(self) -> None
- test_bad_contrast_can_be_reported_by_palette_audit · method · L313-L326 — def test_bad_contrast_can_be_reported_by_palette_audit(self) -> None
- test_palette_cli_uses_finding_exit_code · method · L328-L337 — def test_palette_cli_uses_finding_exit_code(self) -> None
- test_template_is_not_valid_content · method · L339-L348 — def test_template_is_not_valid_content(self) -> None
- test_uniform_physical_scaling_is_explicit · method · L350-L366 — def test_uniform_physical_scaling_is_explicit(self) -> None
- test_nonuniform_physical_scaling_is_rejected · method · L368-L384 — def test_nonuniform_physical_scaling_is_rejected(self) -> None
- test_duplicate_json_key_is_rejected · method · L386-L391 — def test_duplicate_json_key_is_rejected(self) -> None
- OutputSafetyTests · class · L394-L401 — class OutputSafetyTests(unittest.TestCase)
- test_output_never_overwrites · method · L395-L401 — def test_output_never_overwrites(self) -> None
- PaletteAndPlanTests · class · L404-L432 — class PaletteAndPlanTests(unittest.TestCase)
- test_palette_reports_reference_contrast · method · L405-L412 — def test_palette_reports_reference_contrast(self) -> None
- test_cmyk_requirement_blocks_readiness · method · L414-L432 — def test_cmyk_requirement_blocks_readiness(self) -> None
- PptxSecurityTests · class · L435-L665 — class PptxSecurityTests(unittest.TestCase)
- test_minimal_macro_free_package_passes · method · L436-L447 — def test_minimal_macro_free_package_passes(self) -> None
- test_pptm_extension_is_rejected_without_opening · method · L449-L455 — def test_pptm_extension_is_rejected_without_opening(self) -> None
- test_external_relationship_is_rejected · method · L457-L475 — def test_external_relationship_is_rejected(self) -> None
- test_invalid_relationship_target_mode_is_rejected · method · L477-L495 — def test_invalid_relationship_target_mode_is_rejected(self) -> None
- test_remote_linked_image_is_rejected · method · L497-L515 — def test_remote_linked_image_is_rejected(self) -> None
- test_macro_content_hidden_in_pptx_is_rejected · method · L517-L534 — def test_macro_content_hidden_in_pptx_is_rejected(self) -> None
- test_ole_markup_without_payload_is_rejected · method · L536-L553 — def test_ole_markup_without_payload_is_rejected(self) -> None
- test_non_utf8_entity_bearing_xml_is_rejected · method · L555-L573 — def test_non_utf8_entity_bearing_xml_is_rejected(self) -> None
- test_traversal_member_is_rejected · method · L575-L584 — def test_traversal_member_is_rejected(self) -> None
- test_unknown_package_part_is_rejected · method · L586-L595 — def test_unknown_package_part_is_rejected(self) -> None
- test_strict_profile_requires_exactly_one_slide · method · L597-L609 — def test_strict_profile_requires_exactly_one_slide(self) -> None
- test_image_signature_must_match_suffix · method · L611-L623 — def test_image_signature_must_match_suffix(self) -> None
- test_embedded_binary_is_rejected · method · L625-L636 — def test_embedded_binary_is_rejected(self) -> None
- test_excessive_compression_ratio_is_rejected · method · L638-L650 — def test_excessive_compression_ratio_is_rejected(self) -> None
- test_declared_member_count_is_bounded_before_materialization · method · L652-L665 — def test_declared_member_count_is_bounded_before_materialization(self) -> None