From da9f92f519adb345de1a8ccfb7633205969b208d Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Tue, 5 Sep 2023 10:59:49 -0700 Subject: [PATCH] Fix Ruff warning in new Click test --- tests/click_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/click_test.py b/tests/click_test.py index f3e33bea..5894e3bd 100644 --- a/tests/click_test.py +++ b/tests/click_test.py @@ -11,7 +11,7 @@ def test_display_help() -> None: @click.group() def main() -> None: - """Some command.""" + """Run some command.""" @main.command() @click.argument("topic", default=None, required=False, nargs=1) @@ -38,7 +38,7 @@ def something() -> None: runner = CliRunner() result = runner.invoke(main, ["help"], catch_exceptions=False) - assert "Some command" in result.output + assert "Run some command" in result.output result = runner.invoke(main, ["help", "foo"], catch_exceptions=False) assert "main foo [OPTIONS]" in result.output assert "Run foo" in result.output