tests package¶
Subpackages¶
tests.mkdocspackage- Submodules
tests.mkdocs.conftestmoduletests.mkdocs.test_mkdocsmoduletest_mkdocs_entry_point()test_on_config_patches_formatters()test_on_config_idempotent()test_patched_formatter_preserves_pymdownx_mro()test_patched_formatter_renders_ansi()test_ansi_stylesheet_only_contains_ansi_rules()test_on_config_registers_stylesheet()test_on_post_build_writes_stylesheet()test_patch_mkdocs_click_usage()test_patch_mkdocs_click_plain_options()test_patch_mkdocs_click_idempotent()test_patch_mkdocs_click_forces_color_during_capture()test_on_config_patches_mkdocs_click()test_full_build_renders_ansi_colors()
- Submodules
tests.sphinxpackage- Submodules
tests.sphinx.conftestmoduletests.sphinx.test_sphinxmoduletests.sphinx.test_sphinx_announcementmoduletests.sphinx.test_sphinx_changelogmoduletests.sphinx.test_sphinx_clickmoduletest_directive_functionality()test_directive_option_format()test_directive_option_language_override()test_sphinx_directive_state_persistence()test_directive_variable_conflict()GENERATED_BLOCK_ANCHORtest_generated_block_is_attributed_to_the_directive_body()test_exit_exception_percolate()test_clickrunner_forces_color()test_clickrunner_sets_the_handlers_of_the_build_aside()test_clickrunner_sets_the_level_of_the_build_aside()test_clickrunner_capture_mode_controls_fileno()test_clickrunner_captures_prep_path_stdout()test_program_from_command_line()test_clickrunner_keeps_a_multi_word_prog_name()test_clickrunner_prompt_inlines_environment_assignments()test_clickrunner_prompt_quotes_a_spaced_argument()test_clickrunner_hide_prompt_drops_the_invocation()test_clickrunner_prompt_past_the_input_aborts()test_click_run_prompt_options()test_click_run_output_holding_a_fence_stays_in_its_block()test_code_fence_outgrows_the_fences_it_wraps()test_click_run_hide_prompt_reaches_the_screenshot()test_click_run_screenshot_writes_the_asset()ANIMATED_SOURCEtest_click_run_screenshot_animate_stacks_a_spinner()test_click_run_screenshot_animate_defines_every_class_it_uses()test_click_run_screenshot_animate_accepts_bare_frames()test_click_run_screenshot_line_numbers_give_every_frame_one_gutter()test_click_run_screenshot_animate_bare_frames_need_an_interval()test_click_run_screenshot_animate_rejects_a_foreign_subject()test_click_run_screenshot_animate_is_deterministic()test_click_run_screenshot_animate_rewrites_a_declared_asset()test_click_run_screenshot_animate_carries_a_presentation_change()test_click_run_screenshot_leaves_an_unchanged_asset_alone()RECORDED_SOURCEtest_click_run_screenshot_record_writes_once()test_click_run_screenshot_record_holds_its_last_frame()test_click_run_screenshot_hold_overrides_the_pause()STEEPING_SOURCEtest_click_run_screenshot_keeps_a_slice_of_a_recording()test_click_run_screenshot_start_refuses_what_it_cannot_cut()test_click_run_screenshot_start_takes_zero_or_more()test_click_run_screenshot_blank_closes_the_cycle()test_click_run_screenshot_speed_scales_the_recorded_frames()test_click_run_screenshot_emphasize_lines_bands_a_still()test_click_run_screenshot_emphasize_lines_bands_an_animation()test_click_run_screenshot_emphasize_lines_rejects_a_line_that_is_not_there()test_click_run_screenshot_background()test_click_run_screenshot_columns_auto()test_click_run_screenshot_columns_rejects_an_unusable_width()test_click_run_screenshot_frame_options()test_click_run_screenshot_preset_swaps_the_prompt()test_click_run_screenshot_preset_defaults_to_the_project_wide_one()test_click_run_screenshot_carries_no_watermark_by_default()test_click_run_screenshot_watermark()test_click_run_screenshot_opacity()test_click_run_screenshot_opacity_rejects_what_is_not_one()test_click_run_screenshot_timing_options_take_a_positive_number()test_click_run_screenshot_background_rejects_an_unknown_chrome()HARVEST_SOURCEtest_click_run_screenshot_takes_a_palette_and_a_font()test_click_run_screenshot_palette_reports_a_missing_scheme()test_click_source_screenshot_refuses_a_palette()test_click_run_screenshot_font_reads_as_the_commands_do()test_click_run_mirror_region_round_trips()test_click_run_mirror_needs_both_options()test_click_run_mirror_skips_a_nested_example()test_update_screenshot_blocks_writes_and_checks()test_click_source_screenshot_pictures_its_own_code()test_click_source_screenshot_takes_a_syntax_style()test_click_source_screenshot_bands_its_emphasized_lines()test_click_source_screenshot_is_deterministic()test_click_source_mirror_shows_the_snippet()test_python_render_mirror_is_left_to_its_own_refresher()
tests.sphinx.test_sphinx_click_configmoduleBasketConfigMarketConfigMARKET_SEEDPastryConfigPASTRY_CONFIGtest_click_config_default_and_toml_literal()test_click_config_summary_table_opens_the_reference()test_click_config_renders_table_and_sections()test_click_config_links_every_option_to_its_section()test_click_config_keeps_a_piped_default_in_its_cell()test_click_config_toml_examples()test_click_config_section_override_and_suppress()test_click_config_bare_schema_argument()test_click_config_no_table_and_no_examples()test_click_config_exec_defined_schema_lacks_docstrings()test_click_config_errors_without_schema()test_click_config_errors_on_non_schema()test_click_config_errors_on_unknown_name()test_click_config_errors_in_rst()test_click_config_heading_offset_adapts_to_surrounding_section()OrchardConfigtest_click_config_warns_on_docstring_heading()
tests.sphinx.test_sphinx_click_treemoduleKITCHEN_CLItest_click_tree_renders_summary_table_and_help_blocks()test_click_tree_inline_import_in_body()test_click_tree_no_table_and_no_root()test_click_tree_max_depth_truncates_walk()test_click_tree_label_and_anchor_prefix_override()test_click_tree_summary_keeps_a_piped_description_in_its_cell()test_click_tree_summary_shows_the_whole_description()test_click_tree_links_every_command_to_its_own_section()test_click_tree_summary_table_opens_the_reference()test_click_tree_anchors_open_their_sections()test_click_tree_walks_subcommands_like_the_tree_option()test_click_tree_errors_on_non_command()test_click_tree_errors_on_unknown_name()test_click_tree_errors_in_rst()test_click_tree_heading_offset_defaults_to_top_level()test_click_tree_heading_offset_adapts_to_surrounding_section()test_click_tree_heading_offset_explicit_override()
tests.sphinx.test_sphinx_crosshairmoduletests.sphinx.test_sphinx_doctreesmoduletests.sphinx.test_sphinx_fail_on_warningsmoduletests.sphinx.test_sphinx_internal_linksmoduleORCHARD_PAGEStest_dead_links_finds_each_dead_target_once()test_dead_links_reads_the_links_of_the_given_pages_only()write_project()test_build_warns_once_per_dead_link()test_build_reads_no_link_of_a_page_an_older_build_left()test_parallel_build_reads_the_pages_its_workers_render()test_suppressed_warning_turns_the_check_off()
tests.sphinx.test_sphinx_linkcheckmoduletests.sphinx.test_sphinx_manpagesmoduletest_manpages_hook_writes_tree_into_outdir()test_manpages_hook_honors_prog_name_and_output_dir()test_manpages_hook_skips_non_html_builder()test_manpages_hook_empty_config_is_noop()test_manpages_hook_skips_entry_without_script()test_manpages_module_help_documents_config_shape()test_manpages_hook_emits_html_siblings()test_manpages_hook_respects_render_html_opt_out()test_manpages_directive_renders_one_link_per_command()test_manpages_directive_links_are_ignored_by_linkcheck()test_manpages_directive_links_follow_the_builder_layout()test_manpages_directive_links_survive_a_shared_doctree_cache()test_manpages_directive_is_noop_when_config_empty()test_manpages_directive_renders_inline_literals_as_code()
tests.sphinx.test_sphinx_matrixmodulepytestmarkMATRIX_MODULELABEL_DATE_REWIDGET_CORNERoffline_pypi()unreadable_pypi()git_repo()dated_tag()declare_python()declare_widget()named_repo()table_cells()table_header()tagged_table_rows()test_parse_python_spec()test_python_versions_released_by_default_table()test_python_versions_released_by_sorted_ascending()test_python_versions_released_by_custom_table()test_python_release_dates_shape()synthetic_repo()test_python_matrix_groups_synthetic()test_python_matrix_groups_returns_named_tuple()test_python_matrix_groups_reads_a_tag_that_is_no_utf8()test_python_matrix_groups_no_tags()test_python_matrix_groups_version_floor()test_python_matrix_groups_ceiling_honored()test_python_matrix_groups_keeps_declared_spec()test_python_matrix_groups_respelled_floor_continues_range()test_range_labels()test_python_cell()test_python_cell_spec_shapes()test_python_matrix_table_three_states()test_python_matrix_table_synthetic()test_python_matrix_table_show_date()test_python_matrix_table_column_order()test_python_matrix_table_row_order()test_python_matrix_table_invalid_order()test_python_matrix_table_python_floor()test_python_matrix_table_empty()split_floor_repo()test_python_matrix_table_envelope()test_python_matrix_table_full_history()test_matrix_directive_full_history_option()test_update_matrix_blocks_full_history_marker()test_matrix_python_directive_renders_table()test_matrix_python_directive_respects_floors()test_matrix_python_directive_order_options()test_matrix_python_directive_no_tags_renders_nothing()test_matrix_python_directive_renders_embedded_table()test_update_matrix_blocks_populates_empty_block()test_update_matrix_blocks_idempotent()test_update_matrix_blocks_check_mode()test_update_matrix_blocks_leaves_bad_path_untouched()test_update_matrix_blocks_keeps_other_line_separators()test_update_matrix_blocks_leaves_an_unreadable_pypi_untouched()test_update_matrix_blocks_skips_examples_nested_in_code_block()test_refresh_directives_cli()test_refresh_directives_cli_without_sphinx()test_to_specifier_set()test_to_specifier_set_unparsable()test_to_specifier_set_empty_matches_everything()test_spec_identity()test_spec_floor()test_extract_requirement()test_extract_requirement_canonicalizes_name()test_extract_requirement_from_setup_py()test_dependency_cell()test_dependency_cell_caps_later_majors()test_newest_major()test_dependency_columns()test_envelope()test_column_candidates()test_latest_locked_version()test_latest_locked_version_without_lockfile()stub_releases()synthetic_dep_repo()test_dependency_matrix_groups()test_dependency_matrix_group_keeps_its_released_fields()test_dependency_matrix_table_columns_and_cells()exotic_spec_repo()test_dependency_matrix_table_exotic_specs()test_dependency_matrix_table_merges_equivalent_specs()narrowing_floor_repo()test_dependency_matrix_table_merge_keeps_distinct_specs()test_dependency_matrix_table_bins_split_ranges()pinned_widget_repo()test_dependency_matrix_table_pinned_spec()test_dependency_matrix_table_lone_ceiling()test_dependency_matrix_table_suffixed_poetry_floor()test_dependency_matrix_table_shows_a_release_ahead_of_the_lock()WIDGET_DATESdated_dep_repo()test_dependency_matrix_table_undeclared_after_superseded()test_dependency_matrix_table_unmet_major_after_last_release()test_dependency_matrix_table_envelope()ENVELOPE_WIDGET_DATESenvelope_repo()test_envelope_list_across_axes()test_envelope_list_without_cut()test_update_matrix_blocks_envelope_region()test_update_matrix_blocks_leaves_an_envelope_region_untouched()test_dependency_matrix_groups_respelled_spec_continues_range()test_dependency_matrix_table_headers_read_in_column_order()pypi()test_pypi_releases()test_pypi_releases_dates()test_pypi_releases_discards()test_pypi_releases_unreadable()test_to_specifier_set_poetry_conformance()test_to_specifier_set_poetry_bare_wildcard()test_dependency_matrix_table_show_date()test_dependency_matrix_table_column_order()test_dependency_matrix_table_row_order()test_dependency_matrix_table_empty()test_matrix_dependency_directive_renders()test_update_matrix_blocks_marker_form()test_walk_tags_dates_an_annotated_tag()test_update_matrix_blocks_reads_git_twice_per_refresh()test_update_matrix_blocks_marker_order_options()test_update_matrix_blocks_marker_show_date()test_matrix_directive_show_date_option()test_marker_form_renders_natively_in_sphinx()test_resolve_root_relative_base_dir()test_render_block_default_package_label()test_update_matrix_blocks_label_ignores_checkout_name()test_render_block_raises_without_git()test_update_matrix_blocks_preserves_table_without_git()test_matrix_directive_renders_embedded_without_git()
tests.sphinx.test_sphinx_mermaidmoduletests.sphinx.test_sphinx_myst_docstringsmoduletest_xref_conversion()test_colon_fence_conversion()test_colon_fence_preserves_blank_lines()test_colon_fence_blank_line_before_body()test_backtick_fence_conversion()test_mixed_colon_outer_backtick_inner()test_plain_code_fence_conversion()test_plain_code_fence_blank_line_before_body()test_plain_code_fence_not_directive()test_plain_code_fence_idempotent()test_directive_options_follow_the_header()test_role_opening_a_body_is_not_an_option()test_code_block_content_is_verbatim()test_closing_fence_does_not_open_a_code_block()test_footnote_reference_conversion()test_footnote_definition_conversion()test_footnote_ref_and_def_combined()test_footnote_def_not_matched_as_ref()test_link_conversion()test_link_not_converted()test_multiple_links_on_same_line()test_link_strips_backticks_from_label()test_inline_code_conversion()test_inline_code_not_converted()test_inline_code_keeps_its_content()test_double_backtick_span_keeps_its_backticks()test_inline_code_no_cross_contamination_with_xref()test_leading_underscore_span_not_a_hyperlink_ref()test_rst_literals_are_opaque()test_nested_protected_spans_are_restored()test_role_shaped_code_span_not_protected_as_role()test_idempotent_rst_passthrough()test_idempotent_already_converted()test_idempotent_full_rst_docstring()test_mixed_myst_attribute_then_rst_metadata()test_real_detection_function()test_real_group_with_wikipedia_link()test_all_conversions_combined()test_real_caution_with_code_block()test_myst_inside_field_lists()test_full_docstring_with_myst_field_lists()test_unsupported_constructs_pass_through()test_curly_braces_in_inline_code()test_plain_code_fence_empty_body()test_longer_fence_holds_a_shorter_one()test_blank_line_opening_a_body_goes_with_the_header()test_nested_same_type_fences_not_supported()test_directive_inside_field_list_not_supported()test_link_with_parentheses_in_url()test_consecutive_field_list_entries_all_converted()test_empty_field_list_content()test_xref_adjacent_to_field_list_colon()test_multiple_xrefs_in_single_field_entry()test_link_with_backtick_label_in_field_list()test_setup_rejects_wrong_extension_order()test_setup_accepts_correct_order()
tests.sphinx.test_sphinx_opengraphmoduletests.sphinx.test_sphinx_parallelmodulebroken_backlinks()GRAPEGRAPE_DEFINITIONGRAPE_ALIASmerge_worker()test_parallel_merge_keeps_the_definition_over_an_alias()test_a_read_forgets_the_definitions_of_the_last_one()TERROIR_MODULEStest_parallel_read_keeps_the_backlinks_of_a_serial_one()BASKET_MODULEtest_a_page_read_first_lists_its_annotated_members()CRATE_MODULEtest_copied_annotations_keep_the_fields_of_a_typeddict_base()
tests.sphinx.test_sphinx_pythonmoduletest_python_run_renders_stdout()test_python_source_seeds_namespace_for_python_run()test_python_run_language_override()test_python_run_screenshot_writes_the_asset()test_python_run_emphasize_lines_split()test_python_render_passes_block_level_html()test_python_render_host_myst_injects_table()test_python_render_host_myst_injects_heading()test_python_render_source_comes_before_generated_sections()test_python_render_host_rst_injects_admonition()test_python_render_myst_in_rst_host()test_python_render_rst_in_myst_host()test_python_render_myst_in_myst_host_still_works()test_python_render_rst_in_rst_host_still_works()test_exec_directives_disabled_by_default()test_exec_directives_enabled_with_opt_in()test_python_runner_isolated_from_click_runner()test_mirror_src_rewrite_inserts_region()test_mirror_src_rewrite_is_idempotent()test_mirror_src_first_sight_stops_at_the_next_generator()test_mirror_src_via_update_mirror_blocks()test_mirror_src_rewrite_skips_example_nested_in_code_block()test_rewrite_mirrors_refreshes_every_mirror_src_spelling()test_mirror_rewrite_inserts_region()test_mirror_rewrite_is_idempotent()test_mirror_rewrite_replaces_stale_region()test_mirror_rewrite_skips_example_nested_in_code_block()test_python_render_mirror_renders_fresh_without_touching_source()test_update_mirror_blocks_populates_and_idempotent()test_update_mirror_blocks_check_mode()test_update_mirror_blocks_imports_sibling_module()test_refresh_directives_cli_refreshes_mirror_blocks()test_refresh_directives_cli_reads_and_writes_a_page_once()test_refresh_directives_crashing_mirror_gets_no_bug_report()test_crashing_mirror_traceback_names_its_page_line()test_python_render_mirror_show_source_still_single_table()
tests.sphinx.test_sphinx_tablesmoduletests.sphinx.test_sphinx_tabsmoduletests.sphinx.test_sphinx_todosmoduleTODO_SOURCE_RECOMPOST_MODULEGRAFTING_MODULEVARIETIES_MODULEVARIETIES_INITBOWLS_MODULEUNRENDERED_REbuild_project()build_orchard()unrendered_todos()automodule()fake_node()test_todo_identity_ignores_the_import_path_of_a_docstring()test_todo_identity_reads_the_source_form_without_a_file()test_is_reexport()test_full_api_page_and_feature_page_yield_one_entry_each()test_reexported_members_yield_one_entry_each()test_surviving_entry_attributes_to_the_defining_module()test_reexported_attribute_yields_one_entry()test_attributes_sharing_an_object_keep_an_entry_each()test_dedupe_switched_off_restores_every_rendering()test_distinct_todos_all_survive()test_build_succeeds_without_the_todo_extension()test_sort_todos_orders_the_domain_by_page()test_sort_todos_is_inert_without_entries()test_todolist_links_lead_to_the_page_of_their_target()test_docstring_todos()test_docstring_todos_rejects_invalid_source()test_package_modules_walks_without_importing()test_unrendered_todos_warn_at_their_line()test_rendered_todos_do_not_warn()test_todo_rendered_under_another_path_does_not_warn()test_unrendered_todo_check_stays_silent()test_listed_unrendered_todo_fails_the_build()
tests.sphinx.test_sphinx_viewcodemodule
- Submodules
Submodules¶
tests.conftestmoduletests.tachyon_castmoduletests.test_accessibilitymodulereport_cli()test_default_params_include_accessible()test_accessible_precedence()test_accessible_via_envvar()test_cli_envvar_outranks_accessible_envvar()test_accessible_envvar_outranks_configuration()test_explicit_flag_overrides_accessible_envvar()test_default_renders_box_drawing_and_ansi()test_accessible_strips_box_drawing_and_ansi()test_standalone_decorator_on_plain_click_command()test_accessible_flag_published_to_context()test_clear_is_noop_under_accessible()test_echo_via_pager_streams_plainly_under_accessible()test_pager_and_clear_defer_without_accessible_option()
tests.test_ansimoduletests.test_blocksmoduleDEPRECATED_BLOCKS_NAMESREGIONtest_blocks_module_needs_no_sphinx_extra()test_deprecated_blocks_alias_serves_9x_name()test_deprecated_blocks_alias_star_import()test_deprecated_blocks_alias_serves_no_other_name()test_marker_res_grammar()test_replace_region()QUOTED_REGIONtest_skip_region_steps_over_a_quoted_end_marker()test_rewrite_fenced_regions_keeps_a_quoted_end_marker()test_replace_region_ignores_markers_quoted_in_fences()test_replace_region_missing_markers_is_noop()test_fence_spans_treats_nested_fences_as_opaque()test_fence_spans_close()test_fence_span_body()test_fence_spans_chars()test_walk_fences_steps_over_fences()test_rewrite_fences_keeps_what_visit_leaves()test_split_options()test_update_blocks_writes_and_check_mode()test_iter_markdown_files_recurses_directories()
tests.test_bug_reportmodulereport_block()test_unexpected_error_ends_with_a_report()test_report_is_saved_in_the_cache()test_no_report_without_url()test_os_error_ends_with_one_line()test_click_exits_pass_through()test_subcommand_error_reports_once()test_click_extra_cli_reports_its_own_error()test_report_survives_a_missing_version()test_report_shows_resolved_jobs()test_log_report_lets_the_run_go_on()test_report_addresses_an_agent()test_option_words()test_report_form_url_keeps_the_query()test_describe_error()test_compact_frames_keeps_the_innermost()test_culprit_function_skips_nameless_code()
tests.test_carapacemoduleFruitTypecomplete_city()test_flag_key_grammar()test_hidden_flag_key_carries_the_modifier()test_required_flag_key_carries_the_modifier()test_required_and_hidden_modifiers_keep_upstream_order()test_required_option_is_marked()test_required_boolean_pair_is_left_unmarked()test_hidden_option_is_exported_and_marked()test_flag_name()test_root_description()test_description_drops_the_no_rewrap_marker()test_command_description_loses_its_backticks_like_a_flag_does()test_count_flag_is_repeatable()test_operand_help_reaches_the_documentation_block()test_undocumented_operand_leaves_no_documentation_block()test_documentation_stays_aligned_with_its_actions()test_option_computing_its_help_still_describes_itself()test_multiple_value_flag()test_boolean_pair_splits_into_two_flags()test_choice_inlined()test_enum_choice_completes_by_member_name()test_path_file_vs_directory()test_positional_choice()test_positionalany_variadic_path()test_hidden_command()test_aliases()test_exclusive_flags_from_option_group()test_dynamic_action_emitted()test_completion_variable_follows_clicks_derivation()test_no_flag_is_persistent()test_root_default_options_stay_on_the_root()test_subcommand_lists_only_its_own_options()test_spec_agrees_with_click_on_flag_scope()test_plain_cli_keeps_own_lookalike_option()test_spec_validates_against_schema()test_dump_has_header_and_name()test_dump_records_invocation()test_dump_requires_pyyaml()test_help_format_carapace_without_pyyaml()test_carapace_complete_registered()test_format_completion()test_get_completion_args_reads_comp_words()test_complete_reuses_click_machinery()test_subcommand_dynamic_completion_resolves_end_to_end()runner()greet_script()test_wrap_carapace_emits_valid_spec()test_wrap_carapace_install()test_xdg_dir_resolves_at_call_time()test_get_cache_dir()test_install_resolves_home_at_call_time()test_wrap_carapace_mutually_exclusive()test_wrap_install_requires_an_installable_format()test_spec_drives_real_carapace_engine()
tests.test_cli_wrappermoduleGREET_SCRIPTCUSTOM_CLS_SCRIPTMULTI_OPTION_SCRIPTPACKAGE_GROUP_SRCORCHARD_SCRIPTrunner()greet_script()custom_cls_script()weather_script()make_project()create_config()test_patched_class_inherits_click()test_patched_class_has_mixin()test_patched_class_context()test_patched_command_no_extra_params()test_resolve_target()test_resolve_py_file()test_resolve_py_file_missing()test_resolve_not_found()test_resolve_directory_flat_layout()test_resolve_directory_src_layout()test_resolve_directory_setup_cfg()test_resolve_directory_duplicate_scripts()test_resolve_directory_run()test_resolve_directory_introspect()test_resolve_directory_no_scripts()test_resolve_directory_multiple_scripts()test_resolve_directory_package_not_found()test_wrap_self()test_run_invokes_target()test_run_colorizes()test_run_highlights_keywords_with_custom_cls()test_run_unresolvable_target()test_wrapped_crash_gets_no_bug_report()test_run_usage_line_ignores_the_launcher()test_resolve_target_command_returns_command_and_context()test_resolve_target_command_drills_subcommand()test_resolve_target_command_rejects_a_wrong_path()test_module_scan_finds_the_one_command()test_module_scan_refuses_an_ambiguous_module()test_params_follow_a_subcommands_own_context_settings()test_wrapper_group_runs_a_lazy_subcommand()test_params_follow_the_targets_own_context_settings()test_split_navigation()test_wrap_man_reads_manual()test_wrap_help_format_man_emits_source()test_wrap_man_custom_class_group()test_wrap_man_drills_into_subcommand()test_wrap_man_unresolvable_target()test_wrap_man_output_dir_writes_tree()test_wrap_man_output_dir_creates_missing_directory()test_wrap_man_pages_reject_subcommand()test_wrap_man_flag_refuses_a_destination()test_group_dispatches_to_wrap()test_group_options_work_with_wrap()test_wrap_honors_group_theme()test_wrap_honors_theme_envvar()test_wrap_pins_group_color_on_every_target_kind()test_group_known_subcommands_not_wrapped()test_cli_startup_leaves_the_test_tooling_alone()test_unpatch_click_restores_the_default_theme()test_unpatch_click_keeps_a_default_theme_it_did_not_replace()test_config_verbosity()test_config_group_theme()test_config_target_string()test_config_target_bool_true()test_config_target_bool_false_is_noop()test_config_target_multiple_keys()test_config_target_cli_overrides()test_config_target_wrong_section_ignored()test_config_target_empty_section()test_config_target_no_config()test_config_target_invalid_option()test_config_args_for_target()test_config_args_no_config()test_config_args_no_wrap_section()test_wrap_help_format_describes_a_foreign_cli()test_wrap_help_format_json_is_parseable()test_wrap_help_format_stays_colorless()test_wrap_install_writes_where_the_consumer_looks()test_wrap_destination_refused_for_documents()test_target_prog_name_is_what_a_user_would_type()test_every_rendering_agrees_on_the_target_name()
tests.test_colormoduletest_standalone_color_option()test_no_color_env_convention()test_resolve_color_env_term()test_is_dumb_terminal()test_renamed_color_option_reads_the_color_envvars()test_resolve_color_env_force_color_beats_dumb_term()test_color_synonym_cli_resolution()test_color_synonym_invalid_value()test_color_synonym_hidden_in_help()test_color_synonym_cli_beats_env()test_color_synonym_config_string()test_color_synonym_config_boolean()test_color_synonym_config_beats_env()test_integrated_color_option()test_color_settles_before_eager_help_and_version()test_cli_color_envvars_reach_eager_screens()test_forced_color_sets_and_restores_env()test_resolve_background()test_terminal_background_names_the_theme_of_its_shade()test_resolve_background_query_is_opt_in()test_resolve_background_query_below_explicit_env()test_parse_osc_rgb()test_is_dark_rgb()test_is_a_tty()test_query_osc_background_without_tty()test_query_osc_background_without_streams()test_query_osc_background_pty()test_invocation_color_reaches_background_threads()test_resilient_context_does_not_publish_invocation_color()test_invocation_color_never_outlives_its_invocation()test_invocation_color_expires_with_a_plain_click_command()test_a_stale_finalizer_does_not_clobber_a_live_invocation()
tests.test_command_docmoduletest_render_manpage_header_and_sections()test_option_names_are_escaped_and_bold()test_choice_metavar_rendered()test_optional_value_metavar_attached()test_count_option_has_no_metavar()test_no_rewrap_marker_becomes_no_fill()test_no_rewrap_marker_does_not_leak_into_surrounding_paragraphs()test_name_line_keeps_full_short_help()test_inline_literal_in_short_help_renders_as_bold()test_inline_literal_in_description_renders_as_bold()test_boolean_flag_renders_both_spellings()test_hidden_option_skipped()test_option_groups_become_subsections()test_default_option_groups_close_the_options_section()test_ungrouped_command_has_no_subsections()test_operand_documented()test_render_manpages_tree_filenames()test_subcommand_page_uses_full_path()test_hidden_command_skipped()test_dynamic_subcommand_discovered()test_environment_section_deduplicated()test_files_section_from_config_option()test_version_and_authors_overrides()test_copyright_omitted_by_default()test_authors_omitted_without_metadata()test_source_date_epoch_is_honored()test_write_manpages()test_man_option_reads_the_manual()test_strip_overstrike()test_find_typesetters_fills_each_installed_one()test_man_option_falls_back_to_the_source()test_accessible_manual_drops_overstrike()test_generated_roff_passes_groff_lint()test_render_help_rejects_unknown_format()test_help_formats_describe_every_format()test_render_help_takes_a_member_or_its_value()test_render_help_names_carapace_spec_after_prog_name()test_json_carries_every_section()test_json_carries_choices_a_short_metavar_hides()test_json_reports_no_choices_for_an_open_type()test_a_short_metavar_lists_its_values_in_the_render()test_a_default_choice_metavar_does_not_repeat_its_values()test_every_enumerated_default_option_reaches_the_render()test_json_lists_subcommands_by_name_only()test_subcommand_aliases_reach_every_backend()test_json_full_walks_the_whole_tree()test_markdown_renders_every_section()test_markdown_full_walks_the_whole_tree()test_no_rewrap_marker_keeps_its_shape_in_markdown()test_markdown_escapes_html_characters_outside_code_spans()test_examples_render_in_every_backend()test_command_without_examples_grows_no_section()test_malformed_examples_fail_at_construction()test_dynamic_help_is_extracted()test_registered_name_names_the_page()Fruittest_enum_choices_are_spelled_as_click_completes_them()test_json_spells_enum_choices_as_click_completes_them()test_install_manpages_resolves_home_at_call_time()
tests.test_commandsmoduletest_module_root_declarations()test_deprecated_click_exports_are_forwarded()test_import_raises_no_deprecation_warning()test_public_namespace_integrity()test_no_debugger_ballast_on_import()CLOUP_METADATA_PROBE_VERSIONtest_no_heavy_dependency_ballast_on_startup()test_import_module_budget()STARTUP_RATIO_TO_CLICKHELLO_CLICKtest_startup_time_stays_within_a_ratio_of_click()test_lazy_test_tooling_exports()test_lazy_converter_exports()LAZY_REGISTRIEStest_lazy_exports_are_declared_and_typed()test_reimplemented_exports_are_typed()test_lazy_export_modules_stay_off_startup()test_lazy_export_modules_are_visible_to_freezers()all_command_cli()test_unknown_option()test_short_option_error_enhancement()test_unknown_command()test_required_command()test_group_help()test_help_eagerness()test_help_custom_name()test_subcommand_help()test_subcommand_execution()test_integrated_version_value()test_colored_bare_help()test_duplicate_option()test_declared_option_replaces_default_option()test_no_option_leaks_between_subcommands()test_option_group_integration()test_show_envvar_parameter()test_show_choices_parameter()test_raw_args()test_group_command_takes_the_options_of_command()test_group_group_takes_the_options_of_group()test_lazy_group()write_produce_modules()test_lazy_group_sections()test_lazy_group_lists_declared_help_without_importing()test_lazy_group_keeps_a_listed_subcommand_in_place()test_cli_help_imports_no_lazy_subcommand()test_cli_lazy_subcommand_lists_as_its_command()test_lazy_group_section_shared_with_eager_subcommand()test_lazy_group_no_default_section()test_lazy_subcommand_normalizes_bare_import_paths()test_decorator_overrides()test_decorator_cls_parameter()test_help_shows_group_help()test_help_shows_subcommand_help()test_help_nested_group()test_help_nonexistent_subcommand()test_help_subcommand_of_non_group()test_help_disabled()test_help_user_override()test_help_appears_in_listing()test_help_search()test_help_search_skips_hidden_subcommands()test_help_search_no_match()test_help_in_all_command_cli()test_help_for_subcommand_in_all_command_cli()kitchen_group()listed_subcommands()test_subcommand_order_in_help_screen()test_subcommand_order_in_list_commands()test_subcommand_order_agrees_across_renderers()test_iter_subcommand_contexts_builds_a_context_per_subcommand()ghost_pantry()test_tree_walks_agree_on_lazy_and_unresolvable_subcommands()test_option_order_agrees_across_renderers()test_argument_help_agrees_across_renderers()test_deprecated_command_label_matches_click()test_full_short_help_drops_the_no_rewrap_marker()test_every_default_option_lands_in_a_section()test_default_option_groups_name_no_stale_flag()test_option_swapped_by_a_params_hook_keeps_its_section()test_params_hook_runs_once_per_decorated_command()test_lazy_group_subcommand_order_is_stable_across_loading()test_lazy_group_defaults_to_alphabetical_order()test_option_priorities_leave_processing_order_alone()test_option_priorities_match_flags_then_destination()test_option_priorities_never_reorder_positional_arguments()test_command_listing_is_not_cut_by_an_abbreviation()test_no_help_screen_leaks_a_no_rewrap_marker()
tests.test_configmoduleDOCS_CONFIG_PAGEFULL_SEARCH_FLAGSNO_DOTGLOB_FLAGSSQLITE_DATAflatten_sqlite_keys()make_sqlite_config()simple_config_cli()test_unset_conf()test_unset_conf_debug_message()test_conf_default_path()test_conf_chosen_formats_displayed()test_conf_show_file_patterns()test_conf_default_pathlib_type()test_conf_default_url_displayed_as_given()test_conf_not_found()test_conf_unparsable()test_conf_blank_source()test_conf_parses_to_nothing()test_conf_blank_file_never_shadows_a_configuration()test_conf_named_pipe()test_no_config_option()test_standalone_no_config_option()test_strict_conf()test_kebab_case_keys()test_kebab_case_spelling_collision()test_strict_conf_ignores_foreign_sections()test_command_forwards_config_strict()test_command_forwards_config_cascade()test_command_excluded_params_additive()test_export_config_includes_unset_params()test_export_config_includes_unset_params_of_a_plain_click_command()test_serialize_toml_with_unset_layout()test_export_config_reads_a_repeatable_flag_as_a_toggle()test_export_config_skips_an_opaque_subtree()test_export_config_kebab_case_keys()test_introspection_flags_load_config_first()test_conf_file_overrides_defaults()test_auto_envvar_conf()test_conf_file_overridden_by_cli_param()test_config_status_line_follows_verbosity()test_no_config_status_line_follows_verbosity()test_conf_metadata()test_conf_metadata_no_config()test_format_from_mime()test_format_from_mime_restricted_to_candidates()test_jwcc_resolves_to_the_json5_parser()test_jwcc_conf()test_conf_key_reaches_a_case_preserving_param_name()test_conf_key_case_folds_onto_the_param_name()test_conf_key_folding_onto_two_params_is_skipped()test_strict_conf_accepts_a_folded_key()test_mime_types_are_unambiguous()test_docs_media_types_table_matches_formats()test_remote_conf_typed_by_content_type()test_remote_conf_falls_back_to_the_url_name()test_remote_conf_content_type_never_widens_the_format_set()test_unparsable_conf_message_enumerates_formats()test_ini_subcommand_section_is_typed()test_argfile_conf_file_overrides_defaults()test_argfile_conf_metadata()test_argfile_cli_overrides_conf()test_argfile_secondary_flag_and_inline_value()test_argfile_switches_sharing_a_destination()test_ini_name_shared_by_two_types_rejected()test_argfile_strict_conf()test_argfile_unknown_option_ignored_when_not_strict()test_argfile_unparsable_conf()test_argfile_positional_tokens_skipped()test_argfile_export_config_rejected()test_sqlite_conf_file_overrides_defaults()test_sqlite_conf_metadata()test_sqlite_read_and_parse_conf()test_sqlite_conf_unparsable()SPLITTABLE_STDLIB_MODULESeager_imports()test_no_splittable_stdlib_module_imported_at_load_time()test_parser_probes_stay_off_the_import()test_sqlite3_not_imported_by_the_package()test_sqlite_support_gates_the_format()test_plist_conf_file_overrides_defaults()test_plist_read_and_parse_conf()test_validate_config_sqlite_valid()test_default_map_populated()test_merge_default_map_standalone()test_merge_default_map_keeps_dotted_keys_in_opaque_subtree()test_default_map_none_without_config()test_nested_subcommand_config()test_multiple_cli_shared_conf()test_params_template_not_mutated_across_invocations()test_lazy_group_config()test_lazy_group_config_no_config_flag()orchard_modules()test_lazy_group_included_params_imports()test_lazy_group_empty_allowlist_imports_no_subcommand()test_lazy_group_included_params_introspection()test_file_pattern()test_default_pattern_roaming_force_posix()test_default_pattern_xdg_config_home()cascade_tree()test_cascade_merges_files_local_wins()test_cascade_list_local_wins()test_cascade_merges_subcommand_sections()test_no_cascade_first_file_wins()test_cascade_single_layer_from_parent()test_cascade_explicit_config_does_not_cascade()test_cascade_conf_sources_metadata()test_cascade_params_names_the_file_of_each_key()test_cascade_conf_full_is_merged_view()test_cascade_validation_error_names_file()test_cascade_strict_check_skips_extension_points()test_read_and_parse_all_conf_orders_local_first()test_read_and_parse_conf_returns_first()test_sentinel_duplication_preserves_identity()test_config_option_default_no_config()test_no_config_explicit_with_default_no_config()test_excluded_params()test_included_params()test_included_params_empty()test_included_and_excluded_params_conflict()test_multiple_files_matching_glob()test_forced_flags_warnings()test_brace_multi_format_search()test_root_dir_parent_search_finds_non_toml()test_no_enabled_formats_raises()test_pyproject_toml_in_defaults()test_pyproject_toml_tool_extraction()test_pyproject_toml_no_tool_section()test_file_pattern_with_pyproject_toml()test_pyproject_toml_overrides_defaults()test_validate_config_valid()test_validate_config_accepts_a_glob()test_validate_config_accepts_a_url()test_validate_config_accepts_the_null_device()test_validate_config_invalid_keys()test_extensionless_config()test_validate_config_unparsable()test_validate_config_parses_to_nothing()test_validate_config_missing_file()test_validate_config_requires_config_option()test_validate_config_pyproject_toml()test_export_config_to_stdout()test_export_config_captures_overrides()test_export_config_captures_environment()test_export_config_numeric_values_keep_their_type()test_export_config_round_trip()test_export_config_invalid_format()test_export_config_without_its_writer()test_export_config_requires_config_option()test_export_config_standalone_falls_back_to_defaults()PlainGroupSubclassSUBCOMMAND_GROUP_FACTORIESmake_subcommand_group()test_default_subcommands_on_any_group_class()test_prepend_subcommands_on_any_group_class()SUBGROUP_CLASSEStest_subcommands_on_a_subgroup()app_dir_conf()test_subcommands_beat_no_args_is_help()test_no_args_is_help_survives_a_silent_config()test_bare_invocation_loads_the_configuration_once()test_no_args_is_help_stays_without_a_config_option()test_group_parse_args_is_wrapped_once()test_default_subcommand_selection()test_default_subcommand_chained()test_default_subcommand_config_errors()test_default_subcommand_strict_mode_tolerance()test_default_subcommand_validate_config_tolerance()test_default_subcommand_with_options()test_default_subcommand_no_config()test_default_subcommand_duplicates_warning()test_default_subcommand_cli_override_debug_log()test_prepend_subcommand_selection()test_prepend_subcommand_with_defaults()test_prepend_subcommand_non_chained_error()test_prepend_subcommand_config_errors()test_prepend_subcommand_strict_mode_tolerance()test_prepend_subcommand_validate_config_tolerance()test_prepend_subcommand_duplicates_warning()test_prepend_subcommand_info_log()test_prepend_subcommand_multiple()test_sanity_checks()test_expand_dotted_keys()test_dotted_keys_in_config()test_expand_dotted_keys_conflict_warning()test_expand_dotted_keys_empty_segments()test_expand_dotted_keys_edge_cases()test_expand_dotted_keys_strict_conflict()test_expand_dotted_keys_strict_empty_segments()test_strict_conf_dotted_key_conflict()test_expand_dotted_keys_keeps_a_key_that_is_not_a_string()test_conf_key_that_is_not_a_string()test_parse_jsonc()test_parse_jsonc_reports_the_line_of_an_error()test_parse_xml_conventions()test_xml_single_element_reads_as_one_item_list()test_parse_xml_rejects_a_malformed_document()test_serialize_xml_conventions()test_xml_round_trip()test_serialize_xml_respells_invalid_names()
tests.test_config_discoverymoduletest_parent_patterns()test_parent_patterns_with_magic_pattern()test_parent_patterns_magic_no_search()test_parent_patterns_relative_path()test_parent_patterns_stop_at_path()test_parent_patterns_stop_at_vcs()test_parent_patterns_inaccessible_directory()test_find_vcs_root()test_default_magic_characters_match_wcmatch()test_literal_base()test_literal_base_needs_the_default_search_flags()test_search_skips_the_glob_of_a_missing_folder()test_parent_search_goes_on_above_a_missing_folder()test_plain_run_loads_no_search_dependency()
tests.test_config_flagsmoduletests.test_config_schemamoduletest_normalize_config_keys()test_normalize_config_keys_keeps_a_key_that_is_not_a_string()test_config_schema_dataclass()test_config_schema_cascade()test_config_schema_callable()test_config_schema_no_config_file()test_config_schema_dataclass_defaults()test_fallback_sections()test_fallback_section_warns_once()test_fallback_sections_prefers_current()test_config_schema_multiple_formats()test_config_schema_on_config_option_directly()test_get_tool_config_defaults_to_current_context()test_flatten_config_keys()test_flatten_config_keys_with_normalize()test_config_schema_nested_toml()test_config_schema_strict_rejects_unknown()test_config_schema_strict_passes_when_valid()test_config_schema_strict_with_nested()test_config_schema_lax_warns_unknown_when_schema_only()SCHEMA_ONLY_CONFSchemaOnlyConfigtest_schema_only_section_loads_in_strict_mode()test_validate_config_warns_unknown_when_schema_only()test_config_schema_lax_silent_when_params_merged()MixedNestedConfigMixedConfigMIXED_CONFtest_strict_check_leaves_schema_keys_to_the_schema()test_strict_check_rejects_a_key_neither_reads()PinnedConfigtest_schema_keys()test_schema_keys_of_a_callable_schema()test_make_schema_callable_warn_unknown()test_make_schema_callable_lax_default_is_silent()test_pyproject_toml_cwd_discovery()test_pyproject_toml_cwd_discovery_walks_up()test_pyproject_toml_explicit_config_skips_cwd()test_pyproject_toml_cwd_skips_unrelated_tool_section()test_pyproject_toml_cwd_walks_past_unrelated_tool_section()test_pyproject_toml_cwd_mixed_tool_sections()test_pyproject_toml_cwd_unrelated_does_not_shadow_app_dir()test_flatten_config_keys_opaque()test_flatten_config_keys_opaque_nested()test_schema_type_aware_flattening()test_schema_field_metadata_config_path()test_schema_field_metadata_normalize_keys_true()test_schema_nested_dataclass()test_schema_nested_dataclass_with_opaque_fields()test_schema_nested_dataclass_defaults()test_strict_skips_opaque_dict_field()test_strict_skips_opaque_metadata_field()test_validate_config_skips_opaque_field()test_opaque_field_keeps_dotted_keys()test_config_validator_runs_and_fails_under_validate_config()test_config_validator_runs_during_normal_load()test_config_validator_extension_path_strips_strict_check()test_config_validator_collects_all_errors()test_collect_opaque_paths_from_schema()test_schema_strict_honors_extension_metadata_on_non_mapping_field()test_run_config_validation_valid_document()test_run_config_validation_exposes_merged_conf()test_run_config_validation_collects_all_then_short_circuits()test_run_config_validation_wraps_schema_errors()test_run_config_validation_no_schema_no_template()test_select_app_section_of_an_empty_app_name_is_the_document()test_run_config_validation_of_an_empty_app_name()test_run_config_validation_reports_a_key_that_is_not_a_string()test_make_schema_callable_coerces_dict_to_dataclass()test_field_docstrings_returns_full_text()test_field_docstrings_degrades_without_source()test_schema_field_infos_flat_schema()test_schema_field_infos_nested_and_config_path()test_schema_field_infos_sorts_segment_wise()test_schema_field_infos_rejects_non_dataclass()test_validation_codes_are_snake_case()
tests.test_contextmoduleKEY_CONSTANTStest_key_constant_value()test_key_uses_namespace_prefix()test_keys_are_unique()test_registry_covers_all_module_constants()NON_META_KEYStest_meta_keys_are_spelled_in_context_only()test_internal_keys_are_private_and_unique()test_get_returns_default_for_missing_key()test_set_then_get_round_trip()test_setdefault_stores_the_factory_value_once()test_context_uses_help_formatter()test_context_meta_kwarg_seeds_ctx_meta()test_context_meta_kwarg_omitted_leaves_meta_empty()test_context_color()test_context_posixly_correct()test_posixly_correct_presence_overrides_explicit_true()test_posixly_correct_stops_option_parsing_at_first_argument()test_lazy_meta_dict_resolves_on_first_access()test_lazy_meta_dict_caches_after_resolution()test_lazy_meta_dict_get_resolves_lazy_key()test_lazy_meta_dict_get_returns_default_for_unknown_key()test_lazy_meta_dict_contains_includes_lazy_keys_without_resolving()test_lazy_meta_dict_preserves_base_entries()test_lazy_meta_dict_independent_keys_resolve_independently()LAZY_ENTRIEStest_lazy_meta_dict_lists_pending_keys_without_resolving()test_lazy_meta_dict_reads_pending_values()test_lazy_meta_dict_equality_reads_pending_values()test_lazy_meta_dict_copy_keeps_pending_keys_pending()test_lazy_meta_dict_removed_key_stays_removed()test_lazy_meta_dict_pop_returns_pending_values()test_lazy_meta_dict_setdefault_resolves_pending_key()test_lazy_meta_dict_wraps_another_without_resolving()test_lazy_meta_dict_added_source_takes_over_its_fields()test_pass_context_typed_for_enhanced_context()
tests.test_docs_anchorsmodulelychee_excludes()closes_fence()uncoded_lines()uncoded_spans()github_slug()readable_anchors()unresolved_fragments()rendered_prose()docstring_page_links()test_markdown_files_are_collected()test_fragment_links_resolve_in_raw_markdown()test_github_slug()test_uncoded_spans()test_code_spans_hold_no_link_and_no_anchor()test_package_sources_are_collected()test_docstrings_link_pages_by_role()test_docstring_page_links_are_found()
tests.test_docs_apimoduletests.test_docs_directivesmoduletests.test_envvarmoduletest_merge_envvar_ids()test_parse_envvar_flag()test_machine_envvars_apply_to_the_built_in_default_only()test_clean_envvar_id()test_show_auto_envvar_help()envvars_test_cases()test_auto_envvar_parsing()test_empty_envvar_falls_back_to_the_default()test_env_copy()test_env_copy_removes_on_none()test_temporary_env_sets_unsets_and_restores()test_temporary_env_restores_after_a_rejected_value()
tests.test_executionmoduletest_die_by_sigint_skips_a_stream_refusing_a_reentrant_flush()NAP_CLIPARSE_NAP_CLIinterrupt_cli()test_ctrl_c_ends_the_process_by_sigint()PLAIN_NAP_CLItest_ctrl_c_in_a_wrapped_cli_ends_the_process_by_sigint()SLOW_JOBS_CLISLOW_THREAD_CLItest_second_ctrl_c_quits_while_tasks_finish()LOCKED_PRESStest_ctrl_c_while_the_registry_lock_is_held()STUBBORN_CHILDREN_CLItest_interrupted_run_kills_children_ignoring_sigterm()STUBBORN_GRANDCHILDREN_CLItest_interrupted_run_kills_grandchildren_ignoring_sigterm()SELF_INTERRUPT_CLISECOND_INTERRUPT_SCRIPTOUTLASTED_GRACE_SCRIPTtest_interrupted_run_exits_like_an_unhandled_ctrl_c()PORTABLE_SIGNALSPOSIX_BRANCHESunguarded_posix_signals()test_posix_only_signals_are_read_under_a_platform_check()test_posix_only_signal_scan_finds_the_package_and_an_unguarded_read()test_simulated_interrupt_keeps_click_exit_status()test_abort_notice_precedes_close_callbacks()test_abort_caught_around_an_invoked_command_prints_no_notice()test_abort_without_standalone_mode_prints_no_notice()test_integrated_time_option()test_integrated_notime_option()test_standalone_timer_option()test_nested_run_of_a_timed_command_keeps_the_outer_start()test_time_with_short_circuit_sibling_still_prints()test_standalone_zero_exit_option()test_zero_exit_auto_envvar()test_run_cli_returns_completed_process()test_run_cli_cwd_moves_the_child()test_run_cli_flattens_nested_args()test_run_cli_discloses_command_at_info()test_run_cli_command_level_override()test_run_cli_streams_output_at_debug_with_label()test_run_cli_writes_input_to_the_child()test_run_cli_logs_the_length_of_its_input_but_never_the_text()test_run_cli_drops_the_input_a_child_exits_before_reading()test_run_cli_raises_on_an_input_it_cannot_encode()test_run_cli_masks_secrets_in_every_record()test_run_cli_masks_each_line_of_a_secret_spanning_several()test_highlight_bin_name()test_format_cli_prompt_styles_token_families()test_format_cli_prompt_arguments_survive_a_shell_round_trip()test_format_cli_prompt_environment_values_survive_a_shell_round_trip()test_format_cli_prompt_unsets_a_variable_mapped_to_none()test_format_cli_prompt_honors_an_explicit_theme()test_format_cli_prompt_masks_secrets()test_mask_secrets()test_run_cli_merged_streams()test_run_cli_timeout_kills_child_and_attaches_partial_output()test_run_cli_timeout_stops_a_child_that_never_reads_its_input()test_run_cli_handles_an_interrupt_tripped_as_the_wait_began()test_run_cli_kill_survives_a_second_interrupt()test_run_cli_default_shares_process_group()test_run_cli_new_session_makes_child_group_leader()GRANDCHILD_SESSIONStest_run_cli_timeout_new_session_kills_grandchildren()test_run_cli_registers_live_process_then_discards_it()test_terminate_live_processes_signals_whole_group()test_kill_signal_reaches_a_grandchild_holding_the_output()test_parse_proc_stat()test_posix_process_table_lists_this_process()test_run_cli_timeout_kills_grandchildren_without_a_session()test_run_cli_timeout_sends_sigterm_first()test_run_cli_timeout_kills_a_child_ignoring_sigterm()test_descendant_pids_walks_the_whole_tree_deepest_first()test_escaped_process_groups()test_terminate_live_processes_ignores_already_reaped()test_install_interrupt_handler_terminates_children_and_reraises()test_install_interrupt_handler_restored_on_context_close()test_install_interrupt_handler_skips_off_main_thread()
tests.test_highlightmoduletest_theme_definition()test_extra_theme()test_cloup_theme_lends_its_slots_to_the_active_theme()HashTypePriorityPorttest_option_highlight()test_extra_deprecated_markers_are_painted()test_extra_deprecated_marker_overlapping_click_is_painted_once()test_deprecation_marker_stays_painted_around_a_keyword()test_bracket_field_full_combination_styling()test_range_field_does_not_leak_into_following_choice()test_bracket_field_inner_slot_fallback_to_bracket()test_bracket_field_inner_slot_override_takes_precedence()test_skip_hidden_option()test_cross_ref_highlight_disabled()NO_HYPHEN_BREAK_CLICK_VERSIONtest_choice_does_not_override_default_style()test_keyword_wrapped_at_its_dash_is_highlighted_whole()test_choice_collection_case()test_argument_highlight()test_no_false_positive_highlight()test_parent_keywords_highlighted_in_subcommand_help()test_parent_choice_case_with_custom_metavar()test_command_aliases_collected()test_command_aliases_highlighted()test_single_alias_highlighted()test_alias_no_false_positive_in_description()test_alias_substring_not_highlighted()test_help_keywords_merge()test_help_keywords_subtract()test_extra_keywords_merged()test_excluded_keywords_preserved_in_collection()test_excluded_keywords_via_constructor()test_excluded_keywords_suppresses_highlighting()test_style_choice_metavar()test_multiple_choice_options_metavar_styled()test_jobs_hybrid_metavar_highlights_keywords_and_placeholder()test_excluded_multiple_choices_styled_in_metavar_only()test_excluded_keywords_inheritance()test_excluded_keywords_grandparent_propagation()test_excluded_keywords_plain_click_group_parent()test_excluded_keywords_not_mutated()test_keyword_collection()test_substring_highlighting()test_standalone_help_option()test_invoked_subcommand_is_highlighted_and_prose_is_not()test_subcommand_options_are_highlighted_on_the_group_screen()test_end_of_options_separator_is_styled()test_bracket_field_closes_on_a_bracketed_default()test_enumerated_metavar_is_styled_part_by_part()
tests.test_humanizemoduletests.test_hygienemoduleROOTPYTHON_FILESUNQUALIFIED_REFERENCEINIT_DOCUMENTED_CLASSESHEX_RUNHASH_PATTERN_SOURCEScodec_names()test_codec_names_detected()test_utf8_spelled_uppercase()test_init_docstring_references_are_qualified()caps_hash_at_sha1()test_hash_cap_detected()test_hash_patterns_take_both_object_formats()
tests.test_jobsmoduletest_standalone_jobs_option()test_default_value()test_keyword_resolution()test_parallel_keyword_collapses_to_sequential_warns()test_explicit_single_job_is_silent()test_default_collapse_to_sequential_is_quiet()test_default_collapse_to_sequential_logged_at_info()test_resolved_job_count_logged_at_info()test_run_jobs_preserves_order()test_run_jobs_sequential_is_lazy()test_run_jobs_preserves_order_past_its_window()test_run_jobs_handles_empty_and_single_streams()test_run_jobs_parallel_reads_no_further_than_its_window()test_run_jobs_parallel_stops_scheduling_on_early_exit()test_run_jobs_reads_jobs_from_context()test_run_jobs_without_context_runs_sequential()test_run_jobs_interrupt_aborts_without_blocking()test_resolve_jobs_without_context_is_sequential()test_resolve_jobs_single_item_is_sequential()test_resolve_jobs_reads_context()test_resolve_jobs_serial_at_debug()test_run_lanes_preserves_order()test_run_lanes_preserves_order_past_its_window()test_run_lanes_materializes_lanes_lazily()test_run_lanes_is_run_jobs_with_singleton_lanes()test_run_lanes_serializes_within_a_lane()test_run_lanes_runs_lanes_concurrently()test_run_lanes_sequential_is_lazy()test_run_lanes_reads_jobs_from_context()test_run_lanes_without_context_runs_sequential()test_run_lanes_empty_yields_nothing()test_lone_item_or_lane_runs_in_the_calling_thread()test_run_lanes_interrupt_aborts_without_blocking()test_run_lanes_interrupt_stops_each_lane_after_its_current_item()test_interrupt_tripped_as_the_wait_began_is_handled_promptly()test_wait_result_raises_the_interrupt_a_lock_error_replaced()test_run_jobs_reports_a_task_timeout_error()test_invalid_value()test_jobs_shell_complete()test_clamp_to_one()test_exceeds_cpu_count()test_no_warning_within_bounds()test_default_jobs()test_default_jobs_of_this_host()test_logical_cpu_count_prefers_process_count()test_logical_cpu_count_fallback_without_process_count()
tests.test_layoutmoduletest_center_in_rule_draws_an_unbroken_line_for_no_label()test_center_in_rule_measures_a_styled_label_unstyled()test_center_in_rule_paints_the_rule_and_leaves_the_label_alone()test_fit_columns_floors_at_nothing_by_default()test_cell_width_discounts_what_a_terminal_draws_nowhere()test_cell_width_is_never_negative()test_pad_to_measures_the_text_a_terminal_draws()test_pad_to_closes_a_style_before_the_blanks()test_pad_to_leaves_text_already_wide_enough_alone()test_number_lines_aligns_on_the_digits_it_is_given()test_number_frames_gives_every_frame_the_gutter_of_the_tallest()
tests.test_loggingmoduleCUSTOM_FORMATrun_handlers()test_level_default_order()test_root_logger_defaults()test_integrated_verbosity_options()test_custom_verbosity_option_name()test_custom_verbose_option_name()test_custom_quiet_option_name()test_counter_trace_agrees_with_its_count()test_unrecognized_verbosity_level()test_standalone_option_default_logger()test_default_logger_param()test_new_logger_name_passing()test_new_logger_object_passing()restored_root_logger()RecordingHandlerapp_handler()test_new_logger_root_config()test_logger_propagation()test_decorating_a_command_leaves_the_root_logger_alone()test_unregistered_logger_name_is_set_up_without_the_root_logger()extra_command()extra_group()click_command()click_command_with_its_own_logger()click_command_without_verbosity()test_run_adds_one_handler_beside_the_others()test_each_run_gets_the_handler()test_record_of_an_earlier_option_is_printed()test_record_after_a_run_is_not_printed()test_caplog_captures_the_records_of_a_command_defined_in_a_test()test_file_handler_of_the_root_logger_keeps_writing()test_handler_leaves_however_the_run_ends()test_failed_run_of_a_click_command_gives_the_handler_back_when_collected()test_run_keeps_its_handler_when_a_failed_run_is_collected()test_failed_run_collected_while_a_record_is_handled()test_nested_runs_share_one_handler()test_resilient_parsing_adds_no_handler()test_root_logger_set_up_on_purpose_is_left_as_it_is()test_handlers_given_to_new_logger_replace_the_run_handler()test_new_logger_replaces_the_handlers_of_the_root_logger()test_new_logger_with_a_name_leaves_the_root_logger_alone()application_levels()levels()test_levels_are_given_back_however_the_run_ends()test_logger_of_the_option_gets_its_own_level_back()test_reset_loggers_falls_back_on_the_default_level()test_levels_are_given_back_when_a_subcommand_fails_while_parsing()test_failed_run_of_a_click_command_gives_its_levels_back_when_collected()failing_click_command()test_run_keeps_its_levels_when_a_failed_run_is_collected()test_levels_found_before_a_failed_run_are_the_ones_given_back()test_released_handler_put_back_on_the_root_logger_prints_nothing()test_importing_a_cli_leaves_the_root_logger_alone()test_root_logger_prints_in_a_new_interpreter_beside_a_named_logger()test_stream_handler_honors_no_color_from_background_threads()test_formatter_renders_label_glued_to_level_name()test_formatter_starts_a_block_below_its_prefix()test_stream_handler_routes_through_active_spinner()
tests.test_logomoduleSILHOUETTE_FLOORcontrast()rgb()ARTWORKPLANE_NAMEStest_palette_matches_the_artwork()test_geometry_lands_on_whole_sub_pixels()test_edges_advance_two_sub_pixels_per_row()test_rows_are_seated_not_floating()test_mark_fits_its_declared_box()test_palette_follows_its_derivation()test_every_cube_shows_exactly_its_three_faces()test_mark_keeps_its_distance_from_both_backgrounds()test_neighbouring_faces_survive_a_256_color_terminal()SCREEN_DEPENDENCIES_ARE_RELEASEStest_screen_fits_an_eighty_column_terminal()test_mark_is_painted_on_demand_and_once()
tests.test_multicallmodulemake_kitchen()test_argv0_dispatch()test_env_prefix_follows_personality()test_explicit_mapping_replaces_identity()test_explicit_prog_name_wins()test_extra_tokens_prepended()test_flat_parse_any_order()test_group_callback_skipped_in_personality_mode()test_group_mode_unchanged()test_help_conformance()test_hidden_subcommand_is_not_a_default_personality()test_invocation_name_meta_key()test_no_envvar_leak_into_group_mode()test_resolve_invocation_name()test_unknown_subcommand_in_mapping()test_version_names_each_personality()test_version_prog_name_varies_without_multicall()test_personalities_subcommand()test_personalities_command_can_be_disabled()test_personalities_command_can_be_overridden()test_injected_subcommands_listed_last_in_declaration_order()test_plain_click_subcommand_is_a_personality()test_normalize_personality()test_deepcopy_keeps_every_sentinel_identical()test_version_option_deepcopy_drops_cache()test_lazy_subcommand_is_a_personality()
tests.test_mystmoduletest_convert_xrefs()test_convert_links()test_convert_inline_code()test_convert_directives()test_convert_directives_keeps_fenced_body()test_convert_directives_skips_fence_interiors()test_convert_source_nested_directives_idempotent()test_convert_source_fenced_samples_untouched()test_convert_comment_blocks()test_convert_source_scopes_to_docstrings_and_comments()test_convert_source_attribute_docstrings()test_convert_source_sharp_colon_comment_blocks()test_convert_file_roundtrip_and_idempotence()test_convert_directory_reports_only_changed()test_convert_to_myst_cli_explicit_directory()test_convert_to_myst_cli_autodetect()test_convert_to_myst_cli_autodetect_failure()test_convert_to_myst_cli_not_a_directory()test_heading_conversion()test_automodule_block_wrapped_in_eval_rst()test_convert_rst_files_creates_md_and_deletes_rst()test_convert_rst_files_skips_non_apidoc()test_convert_rst_files_existing_md_wins()
tests.test_outputmoduleUNENCODABLE_ON_CP1252FakeStreamtest_stdout_sentinel()test_is_stdout()test_prep_path_creates_parents_and_writes_utf8()test_prep_path_stdout()test_prep_path_reopens_the_process_stdout_as_utf8()test_prep_path_returns_a_process_stdout_without_descriptor()test_prep_path_stdout_reaches_the_runner_capture()test_legacy_stream_is_switched_to_utf8()test_utf8_stream_is_left_alone()test_a_refusing_stream_never_raises()test_a_stream_without_reconfigure_is_skipped()test_command_prints_glyphs_to_a_legacy_stream()
tests.test_parametersmoduleCLICK_HELP_PARAM_NAMECustomtest_canonical_param_name_matches_click()test_canonical_param_name_is_many_to_one()test_canonical_param_name_never_answers_an_identifier_decl()FruitOptionAppleOptiontest_search_params_returns_the_one_match()test_last_param_keeps_the_last_exact_match()test_factory_decorators_expose_option_signature()test_params_auto_types()assert_table_content()test_standalone_show_params_option()test_integrated_show_params_option()test_show_params_table_format_ordering()test_show_params_native_types()test_show_params_no_default_renders_none()test_show_params_config_file_cascade()test_show_params_config_file_cascade_shared_sections()test_show_params_config_file_single_file()test_show_params_config_file_url()test_show_params_config_file_column_is_opt_in()test_show_params_config_file_column_drawn_when_cascading()test_show_params_projection_overrides_the_cascade_column()test_show_params_subclass_widens_the_default_columns()test_column_registry_is_consistent()test_find_column_known_and_unknown()test_render_doc_table_emits_markdown()test_columns_option_projects_and_orders()test_columns_option_rejects_unknown_id()test_params_rows_keep_path_order_under_projection()test_params_never_prompts()test_params_confirmation_prompt_string_reads_as_set()test_recurse_subcommands()test_subcommand_conflicts_with_parent_param()test_nested_subcommand_no_false_conflict_with_root_param()test_standalone_table_rendering()test_standalone_no_color_rendering()test_option_value_kind()test_iter_subcommands_hidden_handling()test_iter_subcommands_empty_for_non_group()test_iter_params_for_display_follows_the_help_screen()test_iter_params_for_display_keeps_option_groups_together()test_iter_params_for_display_falls_back_to_get_params()test_iter_params_for_display_yields_late_additions_last()test_help_column_is_opt_in()test_help_column_paints_the_deprecation_marker()PARAMETER_SPEC_CLICK_VERSIONDEPRECATED_FLAG_NAMEtest_option_deprecation_notice_names_its_flags()test_option_error_hint_names_each_environment_variable()test_deprecation_notice_reaches_a_configuration_file()test_deprecation_notice_stays_silent_on_the_default()test_deprecation_notice_is_emitted_once()test_help_column_is_documented()POSITIONAL_DEFINITIONStest_option_constructors_share_one_shape()test_option_constructors_leave_the_root_logger_alone()test_options_lend_the_root_logger_a_handler_for_the_run()test_params_lists_the_envvars_a_subcommand_reads()
tests.test_prebakemodulePYPROJECT_SCRIPTSsrc_project()test_prebake_dunders_fills_every_empty_placeholder_in_one_pass()test_prebake_dunders_leaves_a_placeholder_its_resolver_cannot_fill()test_prebake_dunders_fills_two_placeholders_sharing_a_line()test_prebake_dunders_writes_a_literal_holding_the_value()test_prebake_dunders_counts_columns_past_non_ascii_text()test_prebake_all_bakes_a_src_layout_project()
tests.test_progressmoduletest_progressbar_follows_progress_flag()test_progressbar_explicit_hidden_overrides_flag()test_progressbar_shown_without_active_context()test_progressbar_label_emission_off_tty()test_progressbar_shows_final_position_with_update_min_steps()test_progressbar_prints_a_log_record_above_itself()LOGGING_UNDER_A_BAR_SCRIPTtest_progressbar_logging_on_a_pseudo_terminal()test_progressbar_draws_on_stderr_by_default()test_progressbar_draws_fast_items_once_per_interval()test_progressbar_draws_every_slow_item()test_progressbar_keeps_an_explicit_update_min_steps()test_progressbar_show_eta_follows_time_flag()
tests.test_projectmodulePYPROJECT_SCRIPTSSETUP_CFG_SCRIPTSsrc_project()test_read_project_scripts_prefers_pyproject()test_read_project_scripts_falls_back_to_setup_cfg()test_read_project_scripts_without_metadata()test_entry_point_package()test_locate_package_root()test_locate_package_root_misses_an_absent_package()test_discover_package_init_files_finds_a_src_layout()test_discover_package_init_files_defaults_to_the_current_directory()test_discover_finds_init()test_discover_no_pyproject()test_discover_no_scripts()test_discover_deduplicates()test_detect_source_package_single()test_detect_source_package_src_layout()test_detect_source_package_setup_cfg_only()test_detect_source_package_no_entry_point()test_detect_source_package_multiple()test_detect_source_package_no_project()test_resolve_entry_point_ambiguity_rule()test_resolve_entry_point_src_layout()test_resolve_entry_point_package_not_on_disk()test_callers_share_the_ambiguity_rule()
tests.test_pygmentsmodulelex()collect_classes()get_pyproject_section()check_entry_points()test_ansi_lexers_candidates()test_session_lexers_cover_every_shell_session_lexer()test_formatter_entry_points()test_filter_entry_points()test_lexer_entry_points()test_registered_formatters()test_registered_filters()test_registered_lexers()test_plain_text()test_sgr_fg_standard()test_sgr_bg_standard()test_sgr_fg_bright()test_sgr_bg_bright()test_sgr_text_attribute()test_sgr_attribute_reset()test_sgr22_resets_bold_and_faint()test_sgr0_resets_all()test_empty_sgr_is_reset()test_sgr39_resets_foreground()test_sgr49_resets_background()test_sgr39_keeps_other_attributes()test_sgr_combined()test_256color_fg()test_256color_bg()test_24bit_rgb_fg_quantized()test_24bit_rgb_bg_quantized()test_truecolor_fg_preserves_hex()test_truecolor_bg_preserves_hex()test_truecolor_combined_fg_and_bg()test_truecolor_with_attribute()test_truecolor_default_enabled()test_truecolor_explicit_disable_quantizes()test_truecolor_invalid_range_ignored()test_truecolor_truncated_params_ignored()test_truecolor_filter_forwards_flag()test_truecolor_session_lexer_forwards_flag()test_true_color_lexer_option_reads_a_string()test_true_color_filter_option_reads_a_string()test_formatter_renders_truecolor_inline_style()test_formatter_renders_truecolor_background()test_formatter_truecolor_combined_with_class_styling()test_formatter_truecolor_fg_and_bg_nested_spans()test_formatter_quantize_path_no_inline_styles()test_formatter_osc8_with_truecolor_coexist()test_extra_css_matches_sgr_attributes()test_extra_css_follows_the_style_table()test_non_sgr_csi_stripped()test_csi_ends_on_its_final_byte()test_escape_ends_on_its_final_byte()test_vt100_charset_stripped()test_vt100_charset_g1_stripped()test_unknown_escape_stripped()test_bare_escape_at_end()test_osc_sequence_stripped()test_osc_st_terminated_stripped()test_osc8_hyperlink()test_osc8_with_sgr()test_osc8_unsafe_scheme_stripped()test_osc8_implicit_close()test_osc8_unclosed()test_osc8_close_without_open()test_osc8_survives_a_full_reset()test_color_persists_until_changed()test_multiple_color_changes()test_attribute_stacking()test_independent_fg_bg()test_sgr_with_trailing_semicolons()test_sgr_leading_semicolons()test_sgr_double_semicolons()test_sgr_unknown_codes_ignored()test_256color_truncated_params()test_256color_out_of_range()test_24bit_truncated_params()test_24bit_out_of_range()test_extended_color_unknown_mode()test_non_numeric_sgr_params()test_consecutive_resets()test_empty_text_between_sequences()test_newline_in_colored_text()test_interleaved_text_and_escapes()test_lexer_resets_between_calls()test_ansi_styles_has_all_named_colors()test_ansi_styles_has_256_palette()test_ansi_styles_excludes_all_attributes()test_ansi_styles_count()test_formatter_no_color_on_attribute_css()test_palette_256_completeness()test_palette_256_hex_format()test_lexer_map_completeness()test_ansi_variant_belongs_to_this_module()test_ansi_variant_subclass_keeps_its_names()test_ansi_filter_transforms_output_tokens()test_ansi_filter_passes_through_other_tokens()test_formatter_css_classes_single_color()test_formatter_css_classes_compound()test_formatter_css_classes_256color()test_formatter_style_defs_contain_ansi_colors()test_formatter_shares_the_augmented_style()test_formatter_css_classes_cache_keyed_on_prefix()test_formatter_osc8_hyperlink()test_formatter_osc8_with_color()test_formatter_osc8_url_escaping()test_formatter_css_contains_link_rules()test_formatter_osc8_unsafe_scheme_no_link()test_formatter_osc8_quotes_escaped_in_href()test_real_world_ansi()test_ansi_session_decodes_a_styled_input_line()test_ansi_session_leaves_a_plain_input_line_to_the_shell_lexer()test_ansi_variant_keeps_the_text_of_its_original()test_no_click_extra_help_screen_renders_raw_escapes()
tests.test_pyprojectmoduletests.test_pytestmoduletest_aligned_colored_fixtures()test_isolated_app_dir()ambient_color_var()test_runner_ignores_ambient_color_vars()ambient_cache_home()test_runner_isolates_the_cache_dir()test_runner_lets_a_test_ask_for_color()test_git_repository_takes_each_object_format()test_git_repository_commits_without_signing()test_git_repository_skips_without_git()test_version_details_match_each_object_format()
tests.test_readmemoduletests.test_recordingmoduleStepClocktest_recorder_claims_to_be_a_terminal()test_recorder_frames_carry_what_the_screen_held()test_recorder_drops_a_write_that_changed_nothing()test_recorder_drops_a_cursor_shape_change()test_recorder_stores_one_sample_per_distinct_screen()test_recorder_drops_a_screen_holding_only_blanks()test_recorder_records_a_spinner_without_a_terminal()test_recorder_notes_a_redraw_once_its_reads_settle()test_recorder_holds_a_synchronized_update_until_it_closes()test_recorder_takes_no_frame_of_its_preface_alone()BAR_SCRIPTtest_record_command_recovers_a_foreign_animation()STUBBORN_SCRIPTtest_record_command_kills_a_command_ignoring_sigterm()SLEEPER_SCRIPTtest_record_command_registers_its_command_for_ctrl_c()STUBBORN_PARENT_SCRIPTtest_record_command_kills_what_its_command_started()SPLIT_GLYPH_SCRIPTtest_record_command_reassembles_a_glyph_split_across_reads()test_record_command_closes_its_terminal_when_the_command_cannot_start()FULL_SCREEN_SCRIPTtest_record_command_follows_a_full_screen_program()test_record_and_render_draws_the_prompt_on_every_frame()test_record_and_render_hides_an_empty_prompt()test_record_and_render_reports_the_exit_code()test_record_and_render_refuses_an_empty_recording()text_columns()test_record_and_render_numbers_every_frame_in_one_gutter()test_quantize_lands_jitter_on_one_grid()test_quantize_keeps_the_frames_it_times()test_quantize_rejects_a_grid_going_nowhere()test_start_at_opens_on_the_screen_standing_then()test_start_at_refuses_a_start_leaving_nothing()test_end_at_stops_on_the_screen_standing_then()test_end_at_refuses_an_end_before_anything()test_record_and_render_ends_where_asked()test_record_and_render_refuses_an_end_before_the_start()test_record_and_render_starts_where_asked()test_quantized_recordings_of_one_command_render_the_same_bytes()test_a_dropped_frame_does_not_move_the_recording()test_a_changed_command_moves_the_recording()TYPED_PROMPTtest_ansi_prefix_keeps_the_styling_in_force()test_ansi_prefix_never_cuts_an_escape()test_type_line_makes_one_frame_per_character()test_type_line_holds_the_finished_line_for_the_submit_beat()test_type_line_types_nothing_for_an_empty_line()test_type_line_rejects_a_beat_going_nowhere()test_a_typed_opening_walks_its_cursor_one_cell_at_a_time()test_a_recording_types_its_prompt_when_asked()test_a_recording_types_nothing_unless_asked()RIPENED_SCRIPTlast_drawn_row()window_height()recorded()test_a_closing_prompt_fills_the_row_the_cursor_waited_on()test_a_closing_prompt_opens_a_row_under_a_screen_left_mid_line()test_a_closing_prompt_stays_off_a_full_screen_program()TACHYON_CASTtest_tachyon_live_mode_replays_screen_by_screen()test_line_screen_names_warn_until_their_removal()test_recording_module_serves_no_other_missing_name()
tests.test_screenshotsmoduleASSETSCOMMITTED_PROMPTCaptureCOMMITTED_CAPTURESSAMPLE_CAPTUREsvg_to_lines()KEYFRAMES_REVISIBILITY_STEP_REplayed_frames()poster_frame()svg_box()svg_window()html_to_text()test_trim_lines()test_trim_lines_rules_the_default_marker_across_the_picture()test_trim_lines_caps_the_rule_at_the_terminal_width()test_rule_marker_tracks_the_drawn_width()test_resolve_wrap_marker()test_trim_lines_leaves_room_for_the_wrap_marker()test_capture_leaves_room_for_line_numbers_on_the_rule()test_render_draws_the_wrap_marker_at_each_fold()test_trim_lines_closes_a_style_the_cut_left_open()test_trim_lines_adds_no_reset_after_a_closed_style()test_trim_lines_keeps_a_marker_too_wide_for_its_rule_bare()test_trim_lines_leaves_an_explicit_marker_alone()test_tile_runs_never_opens_a_piece_on_padding()test_tile_runs_keeps_every_piece_on_its_own_column()test_tile_runs_cuts_every_tile_it_was_released_with()test_tile_helpers_warn_until_their_removal()test_svg_module_serves_no_other_missing_name()named_eighths()test_block_elements_cover_their_whole_unicode_block()test_block_element_fills_what_its_name_states()test_shape_runs_cut_shapes_from_the_text_between()test_shape_runs_place_each_piece_where_cell_width_counts_it()test_braille_dots_match_their_unicode_names()test_braille_dots_keep_one_pitch_across_cells()named_arms()test_box_drawing_covers_its_whole_unicode_block()test_box_arms_match_their_unicode_names()test_box_dashes_match_their_unicode_names()test_box_strokes_join_as_menlo_draws_them()test_double_cross_leaves_its_gaps_open()test_box_rule_is_one_shape_and_its_lines_meet_across_rows()test_blank_braille_draws_nothing_and_keeps_its_text()test_stacked_blocks_leave_no_gap()test_half_block_splits_its_cell_in_the_middle()test_block_run_is_one_shape()test_shade_mixes_its_ink_with_the_paper()test_shapes_stay_in_the_text()test_no_committed_capture_draws_shapes_as_glyphs()test_style_rules_writes_one_declaration_per_property()test_render_folds_an_unusable_unique_id()test_render_places_every_run_on_its_own_column()test_no_run_starts_on_padding()test_capture_clip_holds_every_descender()test_no_capture_references_a_missing_clip()ANIMATION_PRESETSanimated_capture()stylesheet_of()claimed_names()test_animated_capture_defines_every_class_it_uses()test_animated_capture_draws_its_chrome_once()test_animation_windows_tile_the_cycle()test_animated_capture_draws_a_row_that_never_moves_once()test_animated_capture_keeps_a_row_that_moves_in_every_frame()TRAIL_FRAMEStest_animated_capture_shows_each_frame_what_it_drew()test_animated_capture_paints_every_background_before_any_glyph()test_animated_capture_draws_a_piece_its_frames_share_once()test_animated_capture_copies_a_piece_too_small_to_time()BAND_GROUP_REbands_of()test_emphasized_lines_are_banded_where_they_sit()test_emphasis_is_mixed_from_the_chrome_it_is_drawn_on()test_emphasis_rejects_a_line_the_capture_does_not_have()test_screenshot_reports_a_line_the_capture_does_not_have()FRAME_BAND_REbanded_frames()test_emphasis_arrives_with_the_row_it_marks()test_emphasis_leaves_a_closing_blank_alone()test_two_animations_share_no_selector()test_frame_animation_css_only_ever_animates()test_animated_capture_hides_its_frames_outside_the_stylesheet()test_animated_capture_renders_the_same_bytes_twice()test_animated_capture_needs_an_interval()test_animated_capture_counts_its_durations()test_animated_capture_rejects_a_frame_lasting_no_time()test_cursor_cell_reads_the_screen_it_is_given()test_cursor_cell_matches_the_screen_that_wrote_it()cursor_rect()test_a_capture_draws_no_cursor_unless_asked()test_cursor_is_drawn_in_the_shape_it_names()test_a_shapeless_cursor_takes_the_terminal_its_preset_names()test_a_cursor_under_the_output_grows_the_window_by_that_line()test_a_cursor_does_not_move_what_emphasize_may_mark()test_an_animated_cursor_blinks_on_one_clock()test_the_blank_closing_a_cycle_shows_no_cursor()test_a_steady_cursor_names_no_class()test_a_blinking_cursor_sits_behind_the_reduced_motion_guard()test_a_blink_never_touches_visibility()test_blink_css_rejects_a_blink_going_nowhere()test_a_capture_rejects_a_cursor_blinking_backwards()test_screenshot_cursor_options_need_their_partner()ORCHARD_SCHEMEiterm_scheme()test_read_palette_reads_a_windows_terminal_scheme()test_read_palette_reads_an_iterm_scheme_as_its_twin()test_read_palette_refuses_what_is_no_scheme()test_read_palette_refuses_an_iterm_component_out_of_range()test_parse_font_stack()test_parse_font_stack_refuses_what_would_break_the_stylesheet()test_render_font_stack_wins_over_the_preset()test_screenshot_draws_with_a_scheme_and_fonts_of_its_own()test_screenshot_reports_a_file_that_is_no_scheme()test_screenshot_draws_a_cursor_when_asked()test_screenshot_draws_no_cursor_unless_asked()test_screenshot_cursor_takes_the_shape_it_names()test_screenshot_bare_cursor_takes_the_preset_shape()test_screenshot_record_starts_where_asked()test_screenshot_record_refuses_an_end_before_the_start()test_screenshot_record_ends_a_command_that_waits()test_screenshot_record_types_its_prompt()test_auto_columns_leaves_room_for_a_cursor()test_auto_columns_with_a_cursor_on_a_blank_screen()test_a_closing_prompt_belongs_to_the_last_frame_alone()test_append_prompt_closes_a_finished_screen()test_append_prompt_takes_the_sigil_its_preset_draws()test_a_closing_prompt_costs_no_height_beside_a_cursor()test_screenshot_closes_a_still_with_a_prompt()test_auto_hold_scales_with_the_final_screen()test_animated_capture_resolves_an_auto_hold()test_animated_capture_rejects_an_unknown_hold_word()test_animated_capture_rejects_a_negative_pause()test_parse_hold()test_parse_hold_rejects()test_parse_pause()test_parse_pause_rejects_a_negative_one()test_html_capture_does_not_animate()test_column_segments()test_no_capture_places_a_column_by_its_padding()test_no_capture_clips_through_a_transform()test_no_capture_hangs_a_filter_on_its_window()test_capture_states_its_font_outside_the_stylesheet()test_every_capture_declares_its_encoding()test_every_capture_names_its_generator()test_every_capture_states_its_size()test_no_capture_fetches_a_font()test_wide_glyphs_are_sized_by_cell()test_capture_output_forces_color_and_pins_width()test_capture_output_states_the_terminal_it_simulates()test_capture_output_hides_the_terminal_it_runs_from()test_capture_output_keeps_stderr_out_unless_asked()CAPTURE_CLICK_VERSIONtest_committed_capture_matches_cli()test_capture_format_from_path()test_capture_format_from_path_rejects_an_unknown_extension()test_capture_format_from_path_reads_a_file_named_dash_as_a_file()test_deliver_capture_writes_a_file_named_dash()test_screenshot_does_not_print_a_resolved_dash()test_render_draws_on_the_chrome_it_is_given()test_render_frames_with_a_border_its_chrome_can_show()test_chrome_resolves_what_the_capture_draws()test_capture_functions_take_one_chrome()test_renderers_take_one_resolved_chrome()test_bare_chrome_is_resolved()test_render_rejects_an_unknown_argument()test_render_paints_what_it_is_given()test_render_states_the_whole_window()test_gradient_svg()test_gradient_svg_places_the_line_in_user_space()test_render_paints_a_gradient_backdrop()test_number_lines()test_preset_catalog()test_palette_color()test_palette_color_rejects_a_value_naming_no_color()test_blend()test_grid_wraps_at_the_terminal_edge()test_grid_marks_each_fold_with_its_wrap_marker()test_grid_without_a_wrap_marker_folds_a_full_row_silently()test_grid_never_splits_a_wide_glyph()test_grid_keeps_a_glyph_wider_than_the_grid()test_window_buttons()test_render_draws_the_preset_it_is_given()test_preset_paints_its_own_titlebar()test_titlebar_collapses_on_a_window_wearing_nothing()test_render_thins_the_window_out()DRAWN_FORMATStest_render_credits_what_drew_it()test_watermark_links_the_package_name()test_watermark_leaves_a_borrowed_credit_unlinked()test_watermark_is_not_terminal_text()test_watermark_sits_where_the_margin_is()test_render_draws_neither_when_asked_for_neither()test_render_geometry()test_render_html_escapes_the_captured_text()test_render_html_round_trips_the_terminal_text()test_render_html_fragment_is_self_contained()test_render_html_document_wraps_the_fragment()test_render_html_quotes_survive_the_style_attribute()css_rects()test_block_css_paints_the_shape_of_its_character()test_render_html_draws_each_box_run_as_one_svg()test_braille_css_draws_one_disc_per_dot()test_render_html_draws_shapes()test_render_html_keeps_a_joined_shape_in_its_cluster()test_fit_columns()test_render_auto_columns_folds_nothing()test_screenshot_rejects_an_unusable_width()test_parse_columns()test_parse_columns_rejects()test_screenshot_rejects_an_unusable_hold()test_capture_environment()test_screenshot_pacing_needs_record()test_screenshot_record_rejects_still_only_arrangements()test_screenshot_record_writes_an_animation()test_screenshot_reports_a_command_that_cannot_start()test_screenshot_reports_a_command_outliving_its_timeout()test_screenshot_wrap_needs_the_console_script()test_screenshot_wrap_matches_the_composition()test_ansi_capture_is_the_text_it_was_given()test_ansi_capture_draws_no_window()test_ansi_capture_bands_an_emphasized_row()test_ansi_band_survives_a_reset_inside_the_row()test_ansi_capture_does_not_animate()test_render_dresses_an_html_capture_in_the_preset_font_alone()
tests.test_snippetmoduleSAMPLEWINDOW_REwindow_paint()test_snippet_wears_the_style_background()test_snippet_style_beats_the_preset_chrome()test_every_style_paints_a_readable_window()test_style_without_text_color_keeps_the_chrome_ink()test_snippet_carries_the_style_colors_into_the_picture()test_highlight_expands_tabs()test_snippet_draws_the_lines_it_was_given()test_snippet_numbers_its_lines()test_snippet_leaves_room_for_line_numbers_on_the_rule()test_snippet_renders_the_same_bytes_twice()test_resolve_lexer()test_unknown_language_is_an_error()test_unknown_style_is_an_error()test_style_defaults_to_the_chrome()test_default_style_sits_close_to_the_capture_chrome()test_snippet_renders_html()shared_option_names()options_of()test_capture_commands_share_one_vocabulary()test_columns_defaults_differ_by_command()test_snippet_command_writes_a_capture()test_snippet_command_reads_stdin()test_snippet_command_rejects_a_fragment_image()test_snippet_command_reports_an_unknown_language()LATIN1_SOURCEtest_snippet_command_refuses_a_source_that_is_not_utf8()test_snippet_command_leaves_the_output_alone_on_undecodable_stdin()test_snippet_prints_ansi_to_stdout()test_snippet_stdout_strips_color_when_piped()test_snippet_stdout_closes_on_one_newline()test_snippet_writes_an_ansi_file()EPILOG_EXAMPLEStest_snippet_epilog_examples_do_what_they_say()
tests.test_sphinx_crossrefsmoduleUV_RUN_DOCSCHANGELOG_RELEASEFOREIGN_NODES_SCRIPTbuilt_docs()captures_before_build()test_committed_captures_survive_a_build()read_html()test_install_page_internal_anchor()test_changelog_releases_are_anchored_on_their_version()test_viewcode_pages_link_back_to_their_objects()test_pickled_pages_hold_no_node_of_another_document()test_cli_reference_anchors()test_cross_page_links_resolve()test_intersphinx_click_resolves()
tests.test_spinnermoduletest_spinner_exported_from_root()test_default_stream_is_stderr()test_explicit_stream_is_honored()test_can_draw()test_noop_on_non_tty_stream()test_delay_suppresses_quick_calls()test_draws_and_cleans_up_when_enabled()test_shown_false_when_not_drawn()test_shown_true_after_drawing()test_label_can_change_mid_spin()test_hide_cursor_disabled()test_ascii_frames()test_stop_is_idempotent_and_safe_before_start()test_suspend_and_resume()test_rotation_direction()test_beep_rings_bell_on_stop_when_enabled()test_beep_silent_when_disabled()test_echo_prints_above_running_spinner()test_echo_degrades_to_plain_write_when_disabled()test_progress_option_is_a_default_option()test_progress_option_resolution()test_standalone_progress_option()test_auto_spinner_follows_progress_flag()test_spinner_stop_leaves_a_stalled_drawing_thread_behind()SPINNING_SCRIPTtest_sigterm_shows_the_cursor_again()test_dumb_terminal_disables_spinner()test_live_always_overrides_dumb_terminal()test_decorator_runs_function_inside_spinner()test_bare_decorator_without_parentheses()test_resolve_color_enabled()test_color_applied_on_tty()test_color_stripped_but_spinner_still_spins_when_disabled()test_style_applied_to_spinner()test_invalid_style_raises()test_style_alone_keeps_painting_the_line_as_one_run()test_part_styles_paint_their_own_part()test_color_off_strips_escapes_embedded_in_the_label()test_kept_line_paints_label_and_timer_with_part_styles()test_kept_line_strips_embedded_escapes_with_color_off()test_invalid_part_style_raises()test_frame_lines_are_what_the_animation_draws()test_frame_lines_honors_reverse()test_frame_lines_colors_on_request()test_outcome_leaves_persistent_line()test_ok_degrades_to_plain_line_when_disabled()test_timer_appended_to_frames_and_final_line()test_timer_accepts_custom_formatter()test_enable_windows_ansi_is_a_safe_noop()test_elapsed_time_freezes_after_stop()test_catalog_is_complete()test_catalog_frames_share_one_width()test_catalog_frames_carry_no_upstream_padding()test_spinner_preset_supplies_frames_and_interval()test_explicit_frames_and_interval_override_preset()test_defaults_without_frames_or_preset()test_multichar_preset_renders()test_demo_spinner_table_lists_selection()test_demo_spinner_without_table_flag_shows_no_table()test_demo_spinner_tour_column_shows_three_cycle_time()test_demo_spinner_all_lists_full_catalog()test_demo_spinner_select_filters_by_name()test_demo_spinner_select_rejects_unknown()test_demo_spinner_random_limits_count()test_demo_spinner_options_are_mutually_exclusive()test_tour_duration_bounds_dwell()test_active_spinner_registry_lifecycle()test_active_spinner_ignores_disabled_spinner()test_trail_glyph()test_color_resolution_reaches_worker_threads()test_resolve_timer_follows_time_flag()test_spinner_rejects_invalid_live()test_spinner_timer_follows_time_flag()CUSTOM_CSSGRIDLESS_BLOCKSdeclared_unicode_ranges()test_catalog_gridless_glyphs_are_covered_by_the_docs_font()SPINNER_ASSETStest_every_spinner_has_a_committed_animation()
tests.test_stylingmoduletest_hex_fg_converts_to_rgb_tuple()test_hex_bg_converts_to_rgb_tuple()test_hex_invalid_raises()test_named_color_string_passes_through()test_or_right_operand_wins_on_conflicts()test_or_returns_subclass_instance()test_or_with_cloup_style_promotes_to_subclass()test_ror_with_cloup_left_operand()test_or_with_non_style_returns_notimplemented()test_cascade_fills_unset_fields_from_base()test_cascade_keeps_subclass_identity()test_cascade_with_non_style_raises()test_to_dict_omits_unset_fields()test_to_dict_serializes_rgb_as_hex()test_to_dict_omits_none_only()test_from_dict_round_trip()test_from_dict_accepts_hex_or_rgb()test_str_returns_styled_sample()test_str_no_styling_has_no_color_codes()test_repr_compact_named_color()test_repr_compact_rgb_to_hex()test_repr_palette_index_zero()test_repr_empty_style()test_repr_multiple_attrs()test_to_css_basic()test_to_css_named_color_passes_through()test_to_css_palette_index_zero()test_to_css_bright_named_color_resolves_to_rgb()test_to_css_text_decorations_combine()test_to_css_dim_emits_opacity()test_to_css_empty_style_returns_empty_string()test_from_ansi_parses_codes()test_from_ansi_full_styled_string_round_trip()test_from_ansi_round_trip_through_call()test_from_ansi_invalid_raises()test_contrast_ratio_white_on_black_is_max()test_contrast_ratio_identical_colors_is_one()test_contrast_ratio_is_symmetric()test_contrast_ratio_meets_wcag_aa_for_dracula_default()test_contrast_ratio_requires_both_fgs()test_eq_survives_a_call()test_eq_with_cloup_style()test_eq_with_non_style()test_supports_truecolor()test_style_call_keeps_24bit_on_truecolor()test_style_call_quantizes_without_truecolor()test_style_call_leaves_named_and_indexed_colors()test_style_call_survives_depth_flip()test_style_call_palette_index_zero()test_style_call_empty_string_color_rejected()test_int_enum_color_round_trips_by_value()test_split_ansi()test_split_ansi_empty_string()test_split_ansi_preserves_text()test_render_ansi_passthrough_unstyled()test_render_ansi_wraps_styled_runs()test_render_ansi_splits_runs_at_newlines()test_wrap_ansi_matches_textwrap_on_plain_text()test_wrap_ansi_breaks_on_visible_width()test_wrap_ansi_closes_styling_on_every_line()test_wrap_ansi_keeps_styling_on_its_own_words()test_wrap_ansi_edge_cases()test_ansi_converters()
tests.test_tablemoduletest_table_formats_definition()test_unrecognized_format()test_corner_header()test_all_table_formats_have_test_rendering()test_all_table_rendering()test_emoji_presentation_width_follows_the_terminal()test_emoji_presentation_gains_the_column_it_paints_into()test_emoji_presentation_padding_stays_out_of_markup()test_markup_pads_emoji_presentation_by_unicode_width()test_print_table_pads_markup_by_unicode_width()test_table_rows_line_up_on_every_terminal_wcwidth_knows()test_table_rows_are_uniform_under_a_narrow_emoji_terminal()test_markup_strips_ansi_by_default()test_markup_preserves_ansi_with_color_flag()test_color_flag_from_parent_group_preserves_ansi()STYLED_MARKUP_SAMPLEStest_styled_formats_all_have_samples()test_styled_formats_translate_ansi()test_styled_formats_strip_ansi_with_no_color()test_serialize_json_compatible()test_serialize_roundtrip()test_serialize_toml_list_wrapping()test_serialize_strips_none()test_serialize_xml()test_serialize_xml_list_wrapping()test_serialize_xml_custom_root_element()test_serialize_xml_respells_invalid_names()test_serialize_default_callback()test_serialize_unsupported_format_raises()test_strip_none()test_apply_default_native_types_unchanged()test_apply_default_custom_type_converted()test_missing_dependency_clean_error()test_render_table_sort()test_render_table_header_edge_cases()test_render_table_xml_element_names()test_wrappable_formats_definition()test_max_column_widths_never_breaks_a_format()test_max_column_widths_keeps_data_formats_intact()test_max_column_widths_scalar_applies_to_every_column()test_max_column_widths_shorter_than_the_table()test_column_spec_max_width_is_the_default_source()test_max_column_widths_overrides_column_spec()test_column_spec_max_width_follows_a_projection()test_auto_width_fits_the_terminal()test_auto_width_shares_the_remainder()test_auto_width_spans_a_wide_terminal()test_auto_width_floors_at_min_column_width()test_auto_width_honors_context_width()test_vertical_wrapping_keeps_the_label_gutter()test_vertical_labels_align_on_their_visible_width()test_column_sort_key()test_sort_by_option_choices_and_default()test_sort_by_option_wires_context()test_print_table_from_subcommand_context()test_print_table_without_table_option()test_render_table_context_method_honors_sort_by()test_sort_by_option_multi_column()test_sort_by_option_decorator()test_sort_by_option_decorator_in_option_group()test_sort_by_option_columns_registry()test_sort_by_option_accepts_column_spec_varargs()test_sort_by_option_rejects_positional_and_columns()test_columns_type_matches_ids_exactly()test_sort_by_and_columns_share_registry()test_column_sort_key_field_mapping()test_column_sort_key_none_when_not_carried()test_render_table_rich_headers_render_labels()test_unsortable_column_keeps_its_place()test_sort_by_option_field_vocabulary()test_sort_by_option_labeled_defs_not_vocabulary()test_sort_by_option_rejects_mixed_defs()test_sort_by_group_heterogeneous_tables()test_print_table_explicit_sort_key_wins()
tests.test_telemetrymoduletests.test_terminalmodulesnapshots()replayed()test_screen_replays_a_stream()test_screen_keeps_a_color_set_between_a_return_and_its_text()test_screen_feeds_the_same_whether_split_or_whole()test_screen_counts_a_wide_glyph_by_its_cells()test_screen_recovers_every_frame_a_spinner_draws()test_screen_replays_a_sized_terminal()test_screen_keeps_the_history_a_full_screen_scrolls_away()test_screen_scrolls_only_its_region()test_screen_moves_the_region_it_is_given()test_screen_draws_a_full_screen_program_on_the_alternate_screen()test_screen_erases_in_the_background_in_force()test_screen_blanks_the_half_a_write_leaves_of_a_wide_glyph()test_screen_joins_a_combining_mark_to_its_base()test_screen_reads_a_color_in_both_spellings()test_screen_reports_the_modes_a_recording_reads()test_screen_resets_to_its_starting_state()test_screen_skips_a_runaway_string_to_its_terminator()test_screen_skips_a_runaway_string_cut_inside_its_terminator()test_screen_refuses_a_terminal_holding_no_cell()INFOCMPTERMINAL_REPLIESTERMINFO_PADDING_REtest_screen_reads_every_sequence_of_the_recording_terminal()
tests.test_test_suitemoduletest_parse_returns_cases()test_parse_returns_cases_per_format()test_parse_toml_requires_cases_key()test_parse_rejects_non_suite_format()test_parse_rejects_malformed()test_load_detects_format_from_extension()test_load_rejects_unknown_extension()test_cases_from_data_builds_cases()test_cases_from_data_rejects_invalid_directive()test_case_execution_trace_stays_out_of_comparisons()test_split_args_honors_quotes()test_case_normalizes_scalars()test_case_normalizes_timeout()test_case_rejects_non_numeric_timeout()test_case_accepts_compiled_regexes()test_case_survives_dataclass_replace()test_output_contains_sees_merged_stream()test_output_regex_preserves_cross_stream_order()test_output_directive_mismatch_fails()test_only_platforms_runs_on_member_platform()test_only_platforms_skip_names_required_platforms()test_non_utf8_output_does_not_crash_the_harness()test_child_inherits_utf8_io_encoding()test_output_and_stream_directives_are_mutually_exclusive()ECHO_ENVtest_env_sets_a_variable_on_the_child()test_unset_env_hides_an_inherited_variable()test_env_directives_leave_the_runner_environment_alone()test_env_overrides_the_injected_io_encoding_default()test_env_rejects_what_is_not_a_string_mapping()test_unset_env_normalizes_like_the_envvar_helpers()LIST_CWDtest_work_directory_moves_the_command()test_work_directory_defaults_to_the_runner_directory()test_work_directory_leaves_the_command_resolution_alone()test_run_suite_applies_the_work_directory_to_every_case()test_env_and_unset_env_are_valid_suite_directives()test_run_counts_pass_and_fail()test_run_select_test_skips_others()test_run_exit_on_error_bails_sequentially()test_run_stats_echoes_summary()test_run_no_stats_is_quiet()test_cli_runs_default_suite()test_cli_runs_suite_file()test_cli_runs_toml_suite_file()test_cli_reports_failure_exit_code()test_cli_rejects_non_integer_jobs()test_cli_skip_platform_knows_every_platform_id()test_cli_requires_command()test_cli_resolves_suite_from_config()test_cli_resolves_native_cases_from_config()
tests.test_testingmoduletest_real_fs()test_temporary_fs()test_runner_output()check_default_colored_rendering()check_default_uncolored_rendering()check_forced_uncolored_rendering()test_invoke_optional_color()test_invoke_default_color()test_invoke_forced_color_stripping()test_invoke_color_keep()test_invoke_force_color()test_invoke_force_color_contradicting_color_raises()test_invoke_catch_exceptions_follows_the_runner()test_command_default_color()test_command_no_color_flag()test_force_color_attribute()test_no_color_envvar()test_force_color_envvar()test_should_strip_ansi_non_tty()test_resolve_color_default_no_context()
tests.test_thememoduletest_theme_does_not_leak_across_invocations()test_theme_default_unchanged_after_invocation()test_demo_themes_renders_each_builtin_palette()test_demo_themes_renders_only_the_named_palettes()test_demo_themes_resolves_auto_to_a_palette_name()test_demo_themes_rejects_an_unknown_palette()test_theme_meta_key_matches_registry()test_font_role_slots_are_known_and_disjoint()test_builtin_themes_alphabetical()test_builtin_themes_build_on_first_lookup()test_builtin_themes_resolve_to_one_instance()test_theme_registry_takes_dict_mutations()test_builtin_themes_are_helptheme_instances()test_cloup_constructors_keep_the_subclass()test_with_rejects_unknown_slots()test_with_takes_none_as_a_value()test_builtin_themes_follow_manpage_font_convention()test_theme_round_trips_through_dict()test_builtin_theme_definition_matches_to_dict()test_to_dict_omits_identity_slots()test_to_dict_emits_cross_ref_highlight_only_when_overridden()test_from_dict_rejects_unknown_keys()test_cascade_overrides_only_set_slots()test_cascade_returns_new_instance_when_overlay_changes_anything()test_cascade_round_trips_through_dict()test_cascade_rejects_non_theme_base()test_themechoice_choices_track_global_registry()test_themechoice_choices_pick_up_context_overrides()test_branded_themes_meet_wcag_aa_large()test_themes_meet_legibility_floor()test_themechoice_inert_when_registry_empty()test_cli_runs_with_empty_theme_registry()test_themes_from_config_overrides_existing_theme()test_themes_from_config_creates_standalone_theme()test_themes_from_config_does_not_mutate_global_registry()test_get_theme_registry_falls_back_to_global_without_ctx()test_config_loads_new_theme()test_config_overrides_existing_theme_palette()test_config_theme_appears_in_help_metavar()test_config_theme_validation_error()test_validate_themes_config_codes()test_command_validators_keep_the_theme_validator()test_config_theme_does_not_leak_across_invocations()test_validate_config_catches_bad_theme()test_theme_auto_resolves_to_detected_palette()test_theme_auto_from_config()test_theme_auto_advertised_in_help_metavar()test_themechoice_accepts_auto_directive()test_theme_option_query_background_opt_in()test_resolve_auto_theme_forwards_query_flag()test_theme_envvar_picks_palette()test_theme_envvar_accepts_auto_directive()test_theme_flag_outranks_envvar()test_cli_envvar_outranks_theme_envvar()test_config_outranks_theme_envvar()test_unknown_theme_envvar_warns_and_keeps_default()test_theme_from_env_reaches_the_help_screen()test_theme_flag_after_help_still_paints_it()
tests.test_trailmoduletest_bar_stop_leaves_a_stalled_ticker_behind()test_bar_teardown_after_a_stall_returns_at_once()test_interrupted_trail_closes_with_a_finisher()test_demo_trail_help_lists_renderings()test_demo_trail_rejects_unknown_spinner()test_demo_trail_prints_plain_lines_off_tty()test_operation_trail_exported_from_root()test_trail_line_carries_themed_glyphs()test_trail_marks_a_skipped_operation()test_drawn_indicator_keeps_a_skipped_finisher()test_sequential_trail_echoes_lines_and_finisher()test_sequential_trail_echoes_off_tty()test_sequential_trail_invisible_stays_silent_off_tty()test_trail_forced_spinner_draws_on_pipe()test_sequential_trail_echo_opt_out()test_concurrent_trail_buffers_until_spinner_draws()test_concurrent_trail_invisible_stays_silent()test_trail_echoes_a_batch_its_indicator_never_drew()test_trail_leaves_nothing_for_an_undrawn_batch_without_echo()test_trail_stays_plain_above_a_drawn_indicator_without_color()test_concurrent_trail_marks_are_thread_safe()test_concurrent_trail_uses_chosen_spinner_preset()test_concurrent_spinner_eta_mode()test_operation_trail_appends_per_operation_timing()test_operation_handle_times_from_its_creation()test_operation_trail_timer_false_drops_all_timing()test_operation_trail_timer_callable_formats_durations()test_progress_bar_trail_renders_bar_and_finisher()test_progress_bar_trail_shows_empty_bar_on_entry()test_progress_bar_clock_defaults_to_elapsed()test_progress_bar_clock_eta_uses_click_eta()test_progress_bar_elapsed_clock_ticks_between_marks()test_operation_trail_rejects_invalid_clock()test_operation_trail_rejects_invalid_live()test_invisible_trail_draws_nothing_even_when_live_always()test_progress_bar_trail_works_concurrently()test_trail_echoes_live_where_no_indicator_draws()test_progress_bar_requires_positive_total()test_progress_bar_and_spinner_are_mutually_exclusive()test_progress_bar_registers_as_active_line_not_spinner()
tests.test_treemoduleOBSERVATORY_TREErunner()test_render_tree_structure()test_render_tree_non_group()test_render_tree_hidden_skipped()test_render_tree_prog_name_override()test_render_tree_theme_styling()test_render_tree_paints_each_choice_of_an_operand()test_render_tree_paints_the_deprecation_label()test_render_tree_wraps_descriptions()test_tree_option_prints_and_exits()test_tree_option_colored()test_tree_option_accessible_ascii_rail()test_tree_option_in_help()kitchen_script()test_wrap_tree_renders_tree()test_wrap_tree_drills_into_subcommand()test_wrap_tree_accessible_ascii_rail()test_wrap_tree_mutually_exclusive()test_wrap_tree_unresolvable_target()
tests.test_typesmoduletest_click_choice_behavior()test_enum_string_choices()test_enum_choice_show_aliases()kebab_case()AliasedStrategyTransformedFormattest_enum_choice_transform()test_enum_choice_transform_with_aliases()test_enum_choice_transform_collision()test_enum_choice_transform_non_string()test_enum_choice_transform_raising()MyEnumtest_enum_choice_internals()test_enum_choice_case_sensitivity()test_enum_choice_shell_complete()test_enum_choice_rejects_non_enum_choices()test_enum_choice_rejects_unknown_choice_source()test_enum_choice_duplicate_string()test_enum_choice_command()test_enum_choice_default_value()test_enum_choice_multiple_default_value()test_enum_choice_none_default()test_enum_choice_variadic_default_value()test_enum_choice_callback()test_multi_choice_parses_input()test_multi_choice_validates_against_choices()test_multi_choice_validates_an_already_parsed_sequence()test_multi_choice_case_insensitive_normalizes()test_multi_choice_case_sensitive_matches_exactly()test_choice_types_default_to_case_insensitive()test_multi_choice_metavar()test_multi_choice_in_click_option()test_duration_parsing()test_duration_passthrough_timedelta()test_duration_invalid()test_duration_rejects_calendar_units()test_duration_absolute_timestamp()test_duration_future_timestamp_parses_to_none()test_duration_in_click_option()test_parse_duration()test_parse_duration_passthrough_timedelta()test_parse_duration_never_raises()test_parse_friendly_duration()test_parse_iso8601_duration()
tests.test_utilsmoduletest_exception_chain_ends_on_a_loop()test_exception_chain_follows_the_context_without_a_cause()test_exception_chain_of_nothing_is_empty()test_exception_chain_prefers_the_cause()test_generator_tag()test_missing_extra_message()test_patch_attr_restores_on_exit()test_patch_attr_restores_on_error()test_patch_attr_requires_existing_attribute()test_flatten_collapses_nested_iterables()test_flatten_of_nothing_is_empty()test_shrinkuser_spells_the_home_directory_as_a_tilde()test_shrinkuser_takes_another_home_spelling()test_deep_merge_merges_dicts_and_takes_every_other_value_from_the_overlay()test_deep_merge_leaves_both_arguments_alone()test_deep_merge_shares_each_value_it_takes_whole()test_deep_merge_is_public_at_the_package_root()SET_NESTED_PATHStest_set_nested_matches_merging_one_path_trees()test_set_nested_rejects_an_empty_path()test_walk_up_starts_at_the_start_and_ends_at_the_root()test_parse_bool()test_boolean_states_match_configparser()BLANK_TREEtest_remove_blanks()test_remove_blanks_drops_a_dict_emptied_by_the_cleaning()test_remove_blanks_leaves_the_tree_alone()
tests.test_versionmoduletest_standalone_version_option()test_debug_output()test_set_version()test_set_version_positional()test_version_option_dashed_positional_is_flag()test_version_option_conflicting_version()test_custom_message()test_style_reset()test_custom_message_style()test_build_resolver_answers_and_is_a_template_field()test_build_time_honors_source_date_epoch()test_context_meta()test_debug_version_run_resolves_no_host_name()test_debug_listing_reaches_a_level_below_debug()test_context_meta_laziness()test_subcommand_version_shares_meta()test_module_version_parent_package_fallback()test_is_main_module()test_main_entry_point_survives_absent_distribution_metadata()test_prebaked_fields_read_from_the_package()test_prebaked_fields_skip_the_package_of_ecosystem_plumbing()test_exec_name()test_package_version_resolves_import_name_to_distribution()test_package_version_ambiguous_import_name_returns_none()test_package_version_unknown_returns_none()test_cli_frame_fallback()STANDALONE_SCRIPTtest_standalone_script()COMMAND_STRING_CLItest_command_string_cli()NUITKA_RUNNERtest_nuitka_runner_resolves_the_entry_point_version()test_package_version_without_a_cli_frame()SUBCOMMAND_VERSION_CLItest_subcommand_version_option_outside_a_test_runner()test_integrated_version_option_precedence()test_version_fields_forwarded_to_version_option()test_version_fields_forwarded_on_group()test_version_fields_multiple()test_version_fields_rejects_unknown()test_unknown_field_is_rejected_the_same_way_everywhere()test_color_option_precedence()test_dev_version_appends_git_hash()test_prebaked_dev_version_not_double_suffixed()test_release_version_unchanged()init_file()test_prebake_cli_resolves_module_from_config()test_prebake_dev_version()test_prebake_single_quotes()test_prebake_already_baked_skipped()test_prebake_release_skipped()test_prebake_no_version_in_file()test_prebake_missing_local_version_raises()test_prebake_idempotent()test_prebake_preserves_surrounding_content()test_prebake_dunder_empty_replaced()test_prebake_dunder_single_quotes()test_prebake_dunder_nonempty_skipped()test_prebake_dunder_not_found()test_prebake_dunder_idempotent()test_prebake_dunder_preserves_surrounding_content()test_prebake_dunder_full_sha()test_prebaked_git_branch()test_prebaked_git_long_hash()test_prebaked_git_tag_sha()test_prebaked_empty_dunder_ignored()test_prebaked_non_string_ignored()test_prebaked_git_distance()test_prebaked_git_dirty()test_resolve_git_distance()test_resolve_git_dirty()test_run_git_decodes_a_branch_name()test_run_git_returns_nothing_or_raises_on_failure()test_run_git_gives_up_after_its_timeout()test_run_git_keeps_an_empty_last_field()test_find_git_root()test_archival_field_substituted()test_archival_field_unsubstituted_ignored()test_archival_field_exact_tag_distance_zero()test_read_archival_roundtrip()test_read_archival_invalid_json()test_find_archival_file_walks_up()test_find_archival_file_absent()test_archival_resolves_git_fields()install_distribution()test_direct_url_field()test_read_direct_url()test_read_direct_url_unknown_distribution()test_direct_url_resolves_git_hashes()test_version_dev_hash_assembly()terminal_width()PLAIN_LOGOSTYLED_LOGOtest_screen_measures_its_logo()test_screen_squares_a_ragged_logo()test_screen_padding_closes_an_open_style()test_screen_facts_may_be_deferred()test_screen_draws_a_callable_logo_once_per_render()test_screen_sizes_its_label_column_to_the_longest_label()test_screen_facts_replace_a_default_row_in_place()test_env_summary_joins_the_default_facts()test_platform_label_names_a_machine_that_differs()test_screen_declines_when_too_narrow()test_screen_opens_on_a_blank_line_and_never_trails_whitespace()test_screen_seats_every_fact_at_one_column()test_screen_uses_the_options_own_styles()screen_cli()test_version_option_without_a_screen_is_unchanged()test_screen_skipped_without_color()test_screen_drawn_with_color()test_screen_skipped_when_accessible()test_version_message_follows_the_theme()test_colors_reach_output()test_sphinx_runner_resets_version_resolution()test_reset_resolution_clears_every_memoized_field()test_reset_resolution_keeps_a_pinned_field()test_deep_copy_keeps_pinned_fields_and_drops_resolved_ones()