diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-09-26 12:54:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-26 12:54:40 -0400 |
commit | 303733526d7335133f7f2dc55f54dca410a9f1de (patch) | |
tree | 72cdffa820e29e15b32f6aa88a173c50ee1218c9 /tests/conftest.py | |
parent | 982d2f2c2b91c04ecd2ba45dc2f6e1d26d77e4c1 (diff) | |
parent | 354cee41b786a7e4088512aa1a95dfce8da89935 (diff) | |
download | cmd2-git-303733526d7335133f7f2dc55f54dca410a9f1de.tar.gz |
Merge pull request #516 from python-cmd2/colorize
Colorize
Diffstat (limited to 'tests/conftest.py')
-rw-r--r-- | tests/conftest.py | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 561f281b..39aa3473 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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. |