diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-09-26 14:37:13 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-09-26 14:37:13 -0400 |
commit | 8aeb29cf1fd027093b87b8f9f9c640cf50595db7 (patch) | |
tree | 23cb1ef06b4f9e52fe8b6da0b7e9f51a05e609e1 /tests/conftest.py | |
parent | 149f6eba2620b1623f6071227318450c779b2b50 (diff) | |
parent | c8983d9d6df4d057672166a7e8df544199788b9a (diff) | |
download | cmd2-git-8aeb29cf1fd027093b87b8f9f9c640cf50595db7.tar.gz |
Merge branch 'macro' into argparse_conversion
Diffstat (limited to 'tests/conftest.py')
-rw-r--r-- | tests/conftest.py | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 1295a633..da6ffcd6 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -45,7 +45,7 @@ macro Manage macros py Invoke python command or shell pyscript Run a python script file inside the console quit Exit this application -set Set a settable parameter or shows current settings of parameters +set Set a settable parameter or show current settings of parameters shell Execute a command as if at the OS prompt shortcuts List shortcuts available """ @@ -82,11 +82,8 @@ SHORTCUTS_TXT = """Shortcuts for other commands: @@: _relative_load """ -expect_colors = True -if sys.platform.startswith('win'): - expect_colors = False # Output from the show command with default settings -SHOW_TXT = """colors: {} +SHOW_TXT = """colors: Terminal continuation_prompt: > debug: False echo: False @@ -96,14 +93,10 @@ locals_in_py: False prompt: (Cmd) quiet: False timing: False -""".format(expect_colors) +""" -if expect_colors: - color_str = 'True ' -else: - color_str = 'False' SHOW_LONG = """ -colors: {} # Colorized output (*nix only) +colors: Terminal # Allow colorized output (valid values: Terminal, Always, Never) continuation_prompt: > # On 2nd+ line of input debug: False # Show full error stack on error echo: False # Echo command issued into output @@ -113,8 +106,7 @@ locals_in_py: False # Allow access to your application in py via self prompt: (Cmd) # The prompt issued to solicit input quiet: False # Don't print nonessential feedback timing: False # Report execution times -""".format(color_str) - +""" def normalize(block): """ Normalize a block of text to perform comparison. |