summaryrefslogtreecommitdiff
path: root/tests/test_transcript.py
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2018-05-03 10:02:21 -0700
committerkotfu <kotfu@kotfu.net>2018-05-03 10:02:21 -0700
commitc539ef4065e9ae8611e1851eaa740f6412f08c25 (patch)
treebf28734df52fc21e1fcd25148d051f585d8e94c9 /tests/test_transcript.py
parentc051c84fd44dda4b0c19f6ad01bb14ea970de260 (diff)
downloadcmd2-git-c539ef4065e9ae8611e1851eaa740f6412f08c25.tar.gz
Fix commented out transcript tests
Diffstat (limited to 'tests/test_transcript.py')
-rw-r--r--tests/test_transcript.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/test_transcript.py b/tests/test_transcript.py
index c0fb49c1..c5263c03 100644
--- a/tests/test_transcript.py
+++ b/tests/test_transcript.py
@@ -26,7 +26,6 @@ class CmdLineApp(cmd2.Cmd):
def __init__(self, *args, **kwargs):
self.multiline_commands = ['orate']
self.maxrepeats = 3
- self.redirector = '->'
# Add stuff to settable and/or shortcuts before calling base class initializer
self.settable['maxrepeats'] = 'Max number of `--repeat`s allowed'
@@ -63,7 +62,7 @@ class CmdLineApp(cmd2.Cmd):
def do_mumble(self, opts, arg):
"""Mumbles what you tell me to."""
repetitions = opts.repeat or 1
- arg = arg.split()
+ #arg = arg.split()
for i in range(min(repetitions, self.maxrepeats)):
output = []
if random.random() < .33:
@@ -229,7 +228,7 @@ def test_invalid_syntax(_cmdline_app, capsys):
('characterclass.txt', False),
('dotstar.txt', False),
('extension_notation.txt', False),
- # ('from_cmdloop.txt', True),
+ ('from_cmdloop.txt', True),
('multiline_no_regex.txt', False),
('multiline_regex.txt', False),
('regex_set.txt', False),
@@ -237,7 +236,7 @@ def test_invalid_syntax(_cmdline_app, capsys):
('slashes_escaped.txt', False),
('slashslash.txt', False),
('spaces.txt', False),
- # ('word_boundaries.txt', False),
+ ('word_boundaries.txt', False),
])
def test_transcript(request, capsys, filename, feedback_to_output):
# Create a cmd2.Cmd() instance and make sure basic settings are