summaryrefslogtreecommitdiff
path: root/tests/test_cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-06-26 17:47:23 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-06-26 17:47:23 -0400
commit5b7a45edf20d70a19c6b8d3706d8e542e1bcf30d (patch)
treeb25177a0790652cbdb05133f2f41868a0324efef /tests/test_cmd2.py
parent2f9aab59acbbfc177a924afe7601b9021a4b1399 (diff)
downloadcmd2-git-5b7a45edf20d70a19c6b8d3706d8e542e1bcf30d.tar.gz
More replacing of 'colors' with 'allow_ansi'
Diffstat (limited to 'tests/test_cmd2.py')
-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 1ddc6a3e..5eeb442e 100644
--- a/tests/test_cmd2.py
+++ b/tests/test_cmd2.py
@@ -354,11 +354,11 @@ def test_run_script_nested_run_scripts(base_app, request):
expected = """
%s
_relative_run_script precmds.txt
-set colors Always
+set allow_ansi Always
help
shortcuts
_relative_run_script postcmds.txt
-set colors Never""" % initial_run
+set allow_ansi Never""" % initial_run
out, err = run_cmd(base_app, 'history -s')
assert out == normalize(expected)
@@ -373,11 +373,11 @@ def test_runcmds_plus_hooks(base_app, request):
'run_script ' + postfilepath])
expected = """
run_script %s
-set colors Always
+set allow_ansi Always
help
shortcuts
run_script %s
-set colors Never""" % (prefilepath, postfilepath)
+set allow_ansi Never""" % (prefilepath, postfilepath)
out, err = run_cmd(base_app, 'history -s')
assert out == normalize(expected)