From 8d9c2813134c38f80ead43578d97b15a44503471 Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Mon, 15 Jan 2018 13:56:05 -0500 Subject: __relative_load command is now hidden from help menu by default --- tests/conftest.py | 4 ++-- tests/test_cmd2.py | 4 ++-- tests/test_transcript.py | 8 ++------ tests/transcripts/from_cmdloop.txt | 5 ++--- 4 files changed, 8 insertions(+), 13 deletions(-) (limited to 'tests') 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 ): ======================================== -_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 ): ======================================== -_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 ): ======================================== -_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 ): ======================================== -_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. -- cgit v1.2.1