summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-06-25 22:38:49 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-06-25 22:38:49 -0400
commit4d2267322b7ac206692bc5ed8fa2ee0dd2ea5e26 (patch)
tree2ff7325f2e3c91ce9e01aab4c7517176665f4424 /tests
parent1be669baed037a1b7a0647242532b2867a3b8ba8 (diff)
downloadcmd2-git-4d2267322b7ac206692bc5ed8fa2ee0dd2ea5e26.tar.gz
Removed color args from poutput since the style function is going to do more than color
Diffstat (limited to 'tests')
-rw-r--r--tests/test_cmd2.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py
index f4c8d3e7..2c6a4eb0 100644
--- a/tests/test_cmd2.py
+++ b/tests/test_cmd2.py
@@ -1447,20 +1447,20 @@ def test_poutput_empty_string(outsim_app):
msg = ''
outsim_app.poutput(msg)
out = outsim_app.stdout.getvalue()
- expected = msg
+ expected = '\n'
assert out == expected
def test_poutput_none(outsim_app):
msg = None
outsim_app.poutput(msg)
out = outsim_app.stdout.getvalue()
- expected = ''
+ expected = 'None\n'
assert out == expected
def test_poutput_color_always(outsim_app):
msg = 'Hello World'
outsim_app.colors = 'Always'
- outsim_app.poutput(msg, fg='cyan')
+ outsim_app.poutput(utils.style_message(msg, fg='cyan'))
out = outsim_app.stdout.getvalue()
expected = Fore.CYAN + msg + Fore.RESET + '\n'
assert out == expected
@@ -1468,7 +1468,7 @@ def test_poutput_color_always(outsim_app):
def test_poutput_color_never(outsim_app):
msg = 'Hello World'
outsim_app.colors = 'Never'
- outsim_app.poutput(msg, fg='cyan')
+ outsim_app.poutput(utils.style_message(msg, fg='cyan'))
out = outsim_app.stdout.getvalue()
expected = msg + '\n'
assert out == expected