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_accessible_precedence(invoke, report_cli, extra_args, expected_color, expected_format)[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,
ACCESSIBLEoutranks 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_standalone_decorator_on_plain_click_command(invoke)[source]¶
--accessiblelowers the defaults of the sibling color and table options, so they must be composed alongside it on a plainclick.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.