summaryrefslogtreecommitdiff
path: root/tests/test_cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-06-26 13:04:16 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-06-26 13:04:16 -0400
commit9f07daaff4763989c89ab51f64e190dc5ba825fe (patch)
tree182b8de91e9e564a2428471eee2491edeca9258b /tests/test_cmd2.py
parentcd396d3ed9c2ea5aafa7f42d7396b4f0f6cd7941 (diff)
downloadcmd2-git-9f07daaff4763989c89ab51f64e190dc5ba825fe.tar.gz
Changed signature of style() to allow for simpler calling and overriding of settings in a provided TextStyle
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 80077a68..3b6089f4 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, ansi.TextStyle(fg='cyan')))
+ outsim_app.poutput(ansi.style(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(ansi.style(msg, ansi.TextStyle(fg='cyan')))
+ outsim_app.poutput(ansi.style(msg, fg='cyan'))
out = outsim_app.stdout.getvalue()
expected = msg + '\n'
assert out == expected