summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-01-15 13:56:05 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2018-01-15 13:56:09 -0500
commit8d9c2813134c38f80ead43578d97b15a44503471 (patch)
tree6bdd87c10aec7c9907656262c85fef711ed1beed /tests
parentc6a19be70445dcf115500ff5e944d9d2937829bb (diff)
downloadcmd2-git-8d9c2813134c38f80ead43578d97b15a44503471.tar.gz
__relative_load command is now hidden from help menu by default
Diffstat (limited to 'tests')
-rw-r--r--tests/conftest.py4
-rw-r--r--tests/test_cmd2.py4
-rw-r--r--tests/test_transcript.py8
-rw-r--r--tests/transcripts/from_cmdloop.txt5
4 files changed, 8 insertions, 13 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 21899f36..18b38724 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -15,8 +15,8 @@ import cmd2
# Help text for base cmd2.Cmd application
BASE_HELP = """Documented commands (type help <topic>):
========================================
-_relative_load edit history py quit save shell show
-cmdenvironment help load pyscript run set shortcuts
+cmdenvironment help load pyscript run set shortcuts
+edit history py quit save shell show
"""
# Help text for the history command
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py
index 3fc7c4ea..76efde5c 100644
--- a/tests/test_cmd2.py
+++ b/tests/test_cmd2.py
@@ -1099,8 +1099,8 @@ def test_custom_help_menu(help_app):
expected = normalize("""
Documented commands (type help <topic>):
========================================
-_relative_load edit history py quit save shell show
-cmdenvironment help load pyscript run set shortcuts squat
+cmdenvironment help load pyscript run set shortcuts squat
+edit history py quit save shell show
Undocumented commands:
======================
diff --git a/tests/test_transcript.py b/tests/test_transcript.py
index 0daad18a..151cf5e6 100644
--- a/tests/test_transcript.py
+++ b/tests/test_transcript.py
@@ -14,9 +14,6 @@ import mock
import pytest
import six
-# Used for sm.input: raw_input() for Python 2 or input() for Python 3
-import six.moves as sm
-
from cmd2 import (Cmd, options, Cmd2TestCase, set_use_arg_list,
set_posix_shlex, set_strip_quotes)
from conftest import run_cmd, StdOut, normalize
@@ -133,9 +130,8 @@ def test_base_with_transcript(_cmdline_app):
Documented commands (type help <topic>):
========================================
-_relative_load help mumble pyscript save shell speak
-cmdenvironment history orate quit say shortcuts
-edit load py run set show
+cmdenvironment help load orate pyscript run say shell show
+edit history mumble py quit save set shortcuts speak
(Cmd) help say
Repeats what you tell me to.
diff --git a/tests/transcripts/from_cmdloop.txt b/tests/transcripts/from_cmdloop.txt
index 5a12ca03..09072440 100644
--- a/tests/transcripts/from_cmdloop.txt
+++ b/tests/transcripts/from_cmdloop.txt
@@ -5,9 +5,8 @@
Documented commands (type help <topic>):
========================================
-_relative_load help mumble pyscript save shell speak
-cmdenvironment history orate quit say shortcuts
-edit load py run set show/ */
+cmdenvironment help load orate pyscript run say shell show/ */
+edit history mumble py quit save set shortcuts speak/ */
(Cmd) help say
Repeats what you tell me to.