← Về thư mục
tests/venue-templates/test_scripts.py
- CatalogueTests · class · L35-L78 — class CatalogueTests(unittest.TestCase)
- test_every_template_file_is_shipped · method · L38-L45 — def test_every_template_file_is_shipped(self) -> None
- test_every_template_declares_status_and_requirements · method · L47-L53 — def test_every_template_declares_status_and_requirements(self) -> None
- test_only_the_poster_scaffold_lacks_an_official_source · method · L55-L65 — def test_only_the_poster_scaffold_lacks_an_official_source(self) -> None: # A missing source is a deliberate signal -- print_template tells the # user to consult event-specific instructions -- so it must stay rare # and intentional rather than creeping across the catalogue.
- test_checked_date_is_an_iso_day · method · L67-L73 — def test_checked_date_is_an_iso_day(self) -> None
- test_template_path_resolves_inside_the_skill · method · L75-L78 — def test_template_path_resolves_inside_the_skill(self) -> None
- SearchTests · class · L81-L108 — class SearchTests(unittest.TestCase)
- test_unfiltered_search_returns_the_whole_catalogue · method · L82-L84 — def test_unfiltered_search_returns_the_whole_catalogue(self) -> None
- test_type_filter_restricts_to_one_category · method · L86-L92 — def test_type_filter_restricts_to_one_category(self) -> None
- test_venue_and_keyword_filters_are_case_insensitive · method · L94-L100 — def test_venue_and_keyword_filters_are_case_insensitive(self) -> None
- test_filters_combine_rather_than_widen · method · L102-L105 — def test_filters_combine_rather_than_widen(self) -> None
- test_unmatched_query_returns_nothing · method · L107-L108 — def test_unmatched_query_returns_nothing(self) -> None
- PageCountDecisionTests · class · L111-L149 — class PageCountDecisionTests(unittest.TestCase)
- test_missing_poppler_skips_rather_than_guesses · method · L114-L117 — def test_missing_poppler_skips_rather_than_guesses(self) -> None
- test_no_limit_reports_information_only · method · L119-L122 — def test_no_limit_reports_information_only(self) -> None
- test_limit_without_a_manual_count_asks_for_one · method · L124-L128 — def test_limit_without_a_manual_count_asks_for_one(self) -> None
- test_content_pages_over_total_pages_fails · method · L130-L133 — def test_content_pages_over_total_pages_fails(self) -> None
- test_content_pages_over_the_limit_fails · method · L135-L138 — def test_content_pages_over_the_limit_fails(self) -> None
- test_within_the_limit_passes · method · L140-L143 — def test_within_the_limit_passes(self) -> None
- test_zero_content_pages_is_accepted_not_treated_as_missing · method · L145-L149 — def test_zero_content_pages_is_accepted_not_treated_as_missing(self) -> None: #
if content_pages is None rather than a falsy check -- 0 pages is a # real answer and must not fall through to the "manual" branch.
- FontAndMetadataTests · class · L152-L170 — class FontAndMetadataTests(unittest.TestCase)
- test_font_result_covers_missing_binary_empty_and_populated · method · L153-L158 — def test_font_result_covers_missing_binary_empty_and_populated(self) -> None
- test_metadata_result_flags_identity_fields_for_blind_review · method · L160-L170 — def test_metadata_result_flags_identity_fields_for_blind_review(self) -> None
- PresetTests · class · L173-L191 — class PresetTests(unittest.TestCase)
- test_every_preset_carries_a_limit_source_and_checked_date · method · L174-L183 — def test_every_preset_carries_a_limit_source_and_checked_date(self) -> None
- test_preset_names_are_offered_as_cli_choices · method · L185-L191 — def test_preset_names_are_offered_as_cli_choices(self) -> None: # --venue uses
choices=sorted(PRESETS), so a preset added to the dict # is selectable without a second edit; this pins that wiring.
- ReportTests · class · L194-L221 — class ReportTests(unittest.TestCase)
- test_report_records_the_source_and_every_result · method · L195-L213 — def test_report_records_the_source_and_every_result(self) -> None
- test_report_names_an_absent_source_explicitly · method · L215-L221 — def test_report_names_an_absent_source_explicitly(self) -> None
- CustomizeTests · class · L224-L290 — class CustomizeTests(unittest.TestCase)
- test_find_template_searches_every_asset_category · method · L225-L233 — def test_find_template_searches_every_asset_category(self) -> None
- test_customizing_a_shipped_template_edits_the_title_and_nothing_else · method · L235-L253 — def test_customizing_a_shipped_template_edits_the_title_and_nothing_else(self) -> None: # The placeholder patterns end in
[^}]*, so they are bounded by the # closing brace of the LaTeX macro they sit in. Driving a real shipped # template is what proves that boundary holds where it matters.
- test_replacement_stops_at_the_enclosing_brace · method · L255-L272 — def test_replacement_stops_at_the_enclosing_brace(self) -> None
- test_template_is_copied_verbatim_when_nothing_matches · method · L274-L282 — def test_template_is_copied_verbatim_when_nothing_matches(self) -> None
- test_empty_values_never_blank_out_a_placeholder · method · L284-L290 — def test_empty_values_never_blank_out_a_placeholder(self) -> None