summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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)