diff options
author | kotfu <jared@kotfu.net> | 2018-05-02 20:27:14 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-02 20:27:14 -0600 |
commit | 6b5c23c127e78ca4f9e30a1cbea76c61f10e418c (patch) | |
tree | 07ebf6b0b51227800b287a6d26d1951d449cbde6 /tests/test_transcript.py | |
parent | d37004d05d0be67f48f35d6986ea899a35bcf89f (diff) | |
parent | fa94eed90cf81b24e5b83c2b4c7e16025d849996 (diff) | |
download | cmd2-git-6b5c23c127e78ca4f9e30a1cbea76c61f10e418c.tar.gz |
Merge pull request #370 from python-cmd2/ply
Switch parsing logic from pyparsing to shlex
Diffstat (limited to 'tests/test_transcript.py')
-rw-r--r-- | tests/test_transcript.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/test_transcript.py b/tests/test_transcript.py index 4f821c06..c0fb49c1 100644 --- a/tests/test_transcript.py +++ b/tests/test_transcript.py @@ -15,7 +15,6 @@ from unittest import mock import pytest from cmd2 import cmd2 -from cmd2.cmd2 import set_posix_shlex, set_strip_quotes from .conftest import run_cmd, StdOut, normalize class CmdLineApp(cmd2.Cmd): @@ -25,7 +24,7 @@ class CmdLineApp(cmd2.Cmd): MUMBLE_LAST = ['right?'] def __init__(self, *args, **kwargs): - self.multilineCommands = ['orate'] + self.multiline_commands = ['orate'] self.maxrepeats = 3 self.redirector = '->' @@ -35,10 +34,6 @@ class CmdLineApp(cmd2.Cmd): super().__init__(*args, **kwargs) self.intro = 'This is an intro banner ...' - # Configure how arguments are parsed for commands using decorators - set_posix_shlex(False) - set_strip_quotes(True) - speak_parser = argparse.ArgumentParser() speak_parser.add_argument('-p', '--piglatin', action="store_true", help="atinLay") speak_parser.add_argument('-s', '--shout', action="store_true", help="N00B EMULATION MODE") @@ -130,7 +125,7 @@ def test_base_with_transcript(_cmdline_app): Documented commands (type help <topic>): ======================================== -alias help load orate pyscript say shell speak +alias help load orate pyscript say shell speak edit history mumble py quit set shortcuts unalias (Cmd) help say |