Skip to content

Commit

Permalink
Fix utils test since docstring was used in test itself
Browse files Browse the repository at this point in the history
Ignore the D401 error instead.
  • Loading branch information
timj committed Jun 24, 2023
1 parent c8e7f06 commit c1e2469
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_cliUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def testHelp(self):
@repo_argument(help="repo help text")
@directory_argument(help="directory help text")
def cli():
"""Return the cli help message."""
"""The cli help message.""" # noqa: D401
pass

self.runTest(cli)
Expand All @@ -63,7 +63,7 @@ def testHelpWrapped(self):
@repo_argument(help="repo help text")
@directory_argument(help="directory help text")
def cli():
"""Return the cli help message."""
"""The cli help message.""" # noqa: D401
pass

self.runTest(cli)
Expand Down Expand Up @@ -199,9 +199,9 @@ def test_help(self):
arguments are declared.
Verify that MWArgument adds " ..." after the option metavar when
`nargs` != 1. The default behavior of click is to add elipsis when
nargs does not equal 1, but it does not put a space before the elipsis
and we prefer a space between the metavar and the elipsis.
`nargs` != 1. The default behavior of click is to add ellipsis when
nargs does not equal 1, but it does not put a space before the ellipsis
and we prefer a space between the metavar and the ellipsis.
"""
# nargs can be -1 for any number of args, or >= 1 for a specified
# number of arguments.
Expand Down

0 comments on commit c1e2469

Please sign in to comment.