summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/conftest.py2
-rw-r--r--tests/test_argparse.py2
-rw-r--r--tests/test_cmd2.py2
-rw-r--r--tests/test_completion.py2
-rw-r--r--tests/test_pyscript.py8
5 files changed, 8 insertions, 8 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index b6f8587f..4083c50e 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -38,7 +38,7 @@ Documented commands (type help <topic>):
================================================================================
alias Manage aliases
edit Edit a file in a text editor
-help List available commands with "help" or detailed help with "help cmd"
+help List available commands or provide detailed help for a specific command
history View, run, edit, save, or clear previously entered commands
load Run commands in script file that is encoded as either ASCII or UTF-8 text
macro Manage macros
diff --git a/tests/test_argparse.py b/tests/test_argparse.py
index 0939859a..fdd16bcc 100644
--- a/tests/test_argparse.py
+++ b/tests/test_argparse.py
@@ -217,7 +217,7 @@ class SubcommandApp(cmd2.Cmd):
func(self, args)
else:
# No subcommand was provided, so call help
- self.do_help(['base'])
+ self.do_help('base')
@pytest.fixture
def subcommand_app():
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py
index 1b31854a..8011ba30 100644
--- a/tests/test_cmd2.py
+++ b/tests/test_cmd2.py
@@ -1251,7 +1251,7 @@ diddly This command does diddly
Other
================================================================================
alias Manage aliases
-help List available commands with "help" or detailed help with "help cmd"
+help List available commands or provide detailed help for a specific command
history View, run, edit, save, or clear previously entered commands
load Run commands in script file that is encoded as either ASCII or UTF-8 text
macro Manage macros
diff --git a/tests/test_completion.py b/tests/test_completion.py
index 40299954..945f68ca 100644
--- a/tests/test_completion.py
+++ b/tests/test_completion.py
@@ -835,7 +835,7 @@ class SubcommandsWithUnknownExample(cmd2.Cmd):
func(self, args)
else:
# No subcommand was provided, so call help
- self.do_help(['base'])
+ self.do_help('base')
@pytest.fixture
diff --git a/tests/test_pyscript.py b/tests/test_pyscript.py
index c7769c7a..36e48598 100644
--- a/tests/test_pyscript.py
+++ b/tests/test_pyscript.py
@@ -18,16 +18,16 @@ class PyscriptExample(Cmd):
def _do_media_movies(self, args) -> None:
if not args.command:
- self.do_help(['media movies'])
+ self.do_help('media movies')
else:
self.poutput('media movies ' + str(args.__dict__))
def _do_media_shows(self, args) -> None:
if not args.command:
- self.do_help(['media shows'])
+ self.do_help('media shows')
if not args.command:
- self.do_help(['media shows'])
+ self.do_help('media shows')
else:
self.poutput('media shows ' + str(args.__dict__))
@@ -72,7 +72,7 @@ class PyscriptExample(Cmd):
func(self, args)
else:
# No subcommand was provided, so call help
- self.do_help(['media'])
+ self.do_help('media')
foo_parser = argparse_completer.ACArgumentParser(prog='foo')
foo_parser.add_argument('-c', dest='counter', action='count')