Skip to content

Commit

Permalink
Fix Ruff warning in new Click test
Browse files Browse the repository at this point in the history
  • Loading branch information
rra committed Sep 5, 2023
1 parent 60abcc7 commit da9f92f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/click_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit da9f92f

Please sign in to comment.