summaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorTL <tleonhardt@sigovs.com>2017-02-07 16:50:19 -0500
committerTL <tleonhardt@sigovs.com>2017-02-07 16:50:19 -0500
commit1dc956e8b3a2b7bd8f152dcbcb60caa8dd57ddb6 (patch)
tree2bd971ff77644438eee94013decc865deb28cdc2 /tests/conftest.py
parent63b444776a12d1de6ccc4325e4254a17e9efd9f4 (diff)
downloadcmd2-git-1dc956e8b3a2b7bd8f152dcbcb60caa8dd57ddb6.tar.gz
Various parsing fixes and improvements:
1) Built-in commands which use @options now properly deal with the USE_ARG_LIST boolean flag 2) Added an "autorun_on_edit" settable parameter which defaults to True to preserve backwards compatibility, but can be set False to prevent automatically running files as scripts when the editor closes 3) Improved how piping works so it can deal with commands which output a large amount of data
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 530c70a1..4b12f5cd 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -46,6 +46,7 @@ if sys.platform.startswith('win'):
expect_colors = False
# Output from the show command with default settings
SHOW_TXT = """abbrev: True
+autorun_on_edit: True
case_insensitive: True
colors: {}
continuation_prompt: >
@@ -64,6 +65,7 @@ if expect_colors:
else:
color_str = 'False'
SHOW_LONG = """abbrev: True # Accept abbreviated commands
+autorun_on_edit: True # Automatically run files after editing
case_insensitive: True # upper- and lower-case both OK
colors: {} # Colorized output (*nix only)
continuation_prompt: > # On 2nd+ line of input