summaryrefslogtreecommitdiff
path: root/tests
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
parent2f9aab59acbbfc177a924afe7601b9021a4b1399 (diff)
downloadcmd2-git-5b7a45edf20d70a19c6b8d3706d8e542e1bcf30d.tar.gz
More replacing of 'colors' with 'allow_ansi'
Diffstat (limited to 'tests')
-rw-r--r--tests/scripts/postcmds.txt2
-rw-r--r--tests/scripts/precmds.txt2
-rw-r--r--tests/test_cmd2.py8
3 files changed, 6 insertions, 6 deletions
diff --git a/tests/scripts/postcmds.txt b/tests/scripts/postcmds.txt
index dea8f265..74f1e226 100644
--- a/tests/scripts/postcmds.txt
+++ b/tests/scripts/postcmds.txt
@@ -1 +1 @@
-set colors Never
+set allow_ansi Never
diff --git a/tests/scripts/precmds.txt b/tests/scripts/precmds.txt
index 0ae7eae8..0167aa22 100644
--- a/tests/scripts/precmds.txt
+++ b/tests/scripts/precmds.txt
@@ -1 +1 @@
-set colors Always
+set allow_ansi Always
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)