summaryrefslogtreecommitdiff
path: root/tests/test_cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-06-26 10:36:24 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-06-26 10:36:24 -0400
commit72044030810dd293699a6bae8853e1cfd0b4887b (patch)
treef389fd97625c55e161cf04ac7e879422a2b19e9a /tests/test_cmd2.py
parente34bba44ef53228aeba613ac6e928b2c315111cf (diff)
downloadcmd2-git-72044030810dd293699a6bae8853e1cfd0b4887b.tar.gz
Added TextStyle class and default implementations for various message types like Warning, Error, and Succes
Diffstat (limited to 'tests/test_cmd2.py')
-rw-r--r--tests/test_cmd2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py
index 3b6089f4..80077a68 100644
--- a/tests/test_cmd2.py
+++ b/tests/test_cmd2.py
@@ -1460,7 +1460,7 @@ def test_poutput_none(outsim_app):
def test_poutput_color_always(outsim_app):
msg = 'Hello World'
outsim_app.colors = 'Always'
- outsim_app.poutput(ansi.style(msg, fg='cyan'))
+ outsim_app.poutput(ansi.style(msg, ansi.TextStyle(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(ansi.style(msg, fg='cyan'))
+ outsim_app.poutput(ansi.style(msg, ansi.TextStyle(fg='cyan')))
out = outsim_app.stdout.getvalue()
expected = msg + '\n'
assert out == expected