tests.test_accessibility module

tests.test_accessibility.report_cli()[source]

An extra command that echoes the resolved color flag and table format, then renders a table with a styled cell.

tests.test_accessibility.test_default_params_include_accessible()[source]
tests.test_accessibility.test_accessible_precedence(invoke, report_cli, extra_args, expected_color, expected_format)[source]
tests.test_accessibility.test_accessible_via_envvar(invoke, report_cli)[source]
tests.test_accessibility.test_cli_envvar_outranks_accessible_envvar(invoke, report_cli)[source]

The variable of one CLI is more specific than the machine-wide one.

tests.test_accessibility.test_accessible_envvar_outranks_configuration(invoke, report_cli, create_config, configured, envvar, expected_color, expected_format)[source]

Unlike the other machine-wide variables, ACCESSIBLE outranks a configuration file: the mode is settled before the file loads.

tests.test_accessibility.test_explicit_flag_overrides_accessible_envvar(invoke, report_cli)[source]
tests.test_accessibility.test_default_renders_box_drawing_and_ansi(invoke, report_cli)[source]
tests.test_accessibility.test_accessible_strips_box_drawing_and_ansi(invoke, report_cli)[source]
tests.test_accessibility.test_standalone_decorator_on_plain_click_command(invoke)[source]

--accessible lowers the defaults of the sibling color and table options, so they must be composed alongside it on a plain click.command.

tests.test_accessibility.test_accessible_flag_published_to_context(invoke, args, expected)[source]

set_accessible publishes the resolved intent at ctx.meta[ACCESSIBLE].

tests.test_accessibility.test_clear_is_noop_under_accessible(invoke, monkeypatch)[source]

clear() defers to click.clear normally, but no-ops under –accessible.

tests.test_accessibility.test_echo_via_pager_streams_plainly_under_accessible(invoke, monkeypatch)[source]

echo_via_pager pages normally, but writes straight to stdout under –accessible.

tests.test_accessibility.test_pager_and_clear_defer_without_accessible_option(invoke, monkeypatch)[source]

With no –accessible option wired, the wrappers defer to Click unchanged.