From 05ee395f0d487fc67979ce3d0824bdaadff5c811 Mon Sep 17 00:00:00 2001 From: kotfu Date: Wed, 25 Apr 2018 22:17:56 -0600 Subject: Remove POSIX_SHLEX and STRIP_QUOTES_FOR_NON_POSIX --- tests/test_transcript.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'tests/test_transcript.py') diff --git a/tests/test_transcript.py b/tests/test_transcript.py index 8ee5f3f6..bba56cab 100644 --- a/tests/test_transcript.py +++ b/tests/test_transcript.py @@ -15,7 +15,6 @@ from unittest import mock import pytest import cmd2 -from cmd2 import set_posix_shlex, set_strip_quotes from .conftest import run_cmd, StdOut, normalize class CmdLineApp(cmd2.Cmd): @@ -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") -- cgit v1.2.1 From 7b2d8a23b978f408cc1fe949e23c0aae97ed54a3 Mon Sep 17 00:00:00 2001 From: kotfu Date: Sun, 29 Apr 2018 15:29:54 -0600 Subject: multilineCommands -> multiline_commands --- tests/test_transcript.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_transcript.py') diff --git a/tests/test_transcript.py b/tests/test_transcript.py index bba56cab..6330ab09 100644 --- a/tests/test_transcript.py +++ b/tests/test_transcript.py @@ -24,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 = '->' @@ -125,7 +125,7 @@ def test_base_with_transcript(_cmdline_app): Documented commands (type help ): ======================================== -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 -- cgit v1.2.1