________________________________________________________ test_suggestion_group _________________________________________________________
advanced_file_regression = <coincidence.regressions.AdvancedFileRegressionFixture object at 0x7f4c0b826460>
cli_runner = <consolekit.testing.CliRunner object at 0x7f4c0b9d3ae0>
def test_suggestion_group(
advanced_file_regression: AdvancedFileRegressionFixture,
cli_runner: CliRunner,
):
@click_group(context_settings={**CONTEXT_SETTINGS, "token_normalize_func": lambda x: x.lower()})
def demo() -> None:
"""
A program.
"""
@demo.command() # skipcq
def search() -> None:
"""
Conduct a search.
"""
result = cli_runner.invoke(demo, args=["searh"])
> result.check_stdout(advanced_file_regression, extension="_success.md")
E AssertionError: FILES DIFFER:
E /usr/src/tmp/pytest-of-builder/pytest-2/test_suggestion_group0/test_commands_/test_suggestion_group_success.md
E /usr/src/tmp/pytest-of-builder/pytest-2/test_suggestion_group0/test_commands_/test_suggestion_group_success.obtained_success.md
E HTML DIFF: /usr/src/tmp/pytest-of-builder/pytest-2/test_suggestion_group0/test_commands_/test_suggestion_group_success.obtained_success.diff.html
E ---
E +++
E @@ -1,5 +1,5 @@
E Usage: demo [OPTIONS] COMMAND [ARGS]...
E -Try 'demo -h' for help.
E +Try 'demo --help' for help.
E
E Error: No such command 'searh'.
E The most similar command is 'search'.
tests/test_commands.py:315: AssertionError
Some tests started to fail with
click8.4.0:https://github.com/pallets/click/releases/tag/8.4.0