From c1e2469267e914b58de82c26dcd1119b1396df6b Mon Sep 17 00:00:00 2001 From: Tim Jenness Date: Fri, 23 Jun 2023 16:52:24 -0700 Subject: [PATCH] Fix utils test since docstring was used in test itself Ignore the D401 error instead. --- tests/test_cliUtils.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_cliUtils.py b/tests/test_cliUtils.py index 498d9260f2..1f7faff4d6 100644 --- a/tests/test_cliUtils.py +++ b/tests/test_cliUtils.py @@ -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) @@ -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) @@ -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.