summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_cmd2.py8
-rw-r--r--tests/test_transcript.py3
2 files changed, 6 insertions, 5 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py
index 2198d5c0..3a69c09c 100644
--- a/tests/test_cmd2.py
+++ b/tests/test_cmd2.py
@@ -227,11 +227,11 @@ def test_base_cmdenvironment(base_app):
Command-line arguments allowed: True
Output redirection and pipes allowed: True
Parsing of @options commands:
- Use POSIX-style argument parser (vs Windows): False
- Strip Quotes when using Windows-style argument parser: True
- Use a list of arguments instead of a single argument string: False
+ Use POSIX-style argument parser (vs Windows): {}
+ Strip Quotes when using Windows-style argument parser: {}
+ Use a list of arguments instead of a single argument string: {}
-""")
+""".format(cmd2.POSIX_SHLEX, cmd2.STRIP_QUOTES_FOR_NON_POSIX, cmd2.USE_ARG_LIST))
assert out == expected
def test_base_load(base_app, request):
diff --git a/tests/test_transcript.py b/tests/test_transcript.py
index 5ac7d6fd..4a7d57a6 100644
--- a/tests/test_transcript.py
+++ b/tests/test_transcript.py
@@ -15,7 +15,7 @@ import six
# Used for sm.input: raw_input() for Python 2 or input() for Python 3
import six.moves as sm
-from cmd2 import Cmd, make_option, options, Cmd2TestCase
+from cmd2 import Cmd, make_option, options, Cmd2TestCase, set_use_arg_list
from conftest import run_cmd, StdOut, normalize
@@ -28,6 +28,7 @@ class CmdLineApp(Cmd):
# Need to use this older form of invoking super class constructor to support Python 2.x and Python 3.x
Cmd.__init__(self, *args, **kwargs)
self.settable.append('maxrepeats Max number of `--repeat`s allowed')
+ set_use_arg_list(False)
opts = [make_option('-p', '--piglatin', action="store_true", help="atinLay"),
make_option('-s', '--shout', action="store_true", help="N00B EMULATION MODE"),