Skip to content

Commit c539ef4

Browse files
committed
Fix commented out transcript tests
1 parent c051c84 commit c539ef4

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

tests/test_transcript.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ class CmdLineApp(cmd2.Cmd):
2626
def __init__(self, *args, **kwargs):
2727
self.multiline_commands = ['orate']
2828
self.maxrepeats = 3
29-
self.redirector = '->'
3029

3130
# Add stuff to settable and/or shortcuts before calling base class initializer
3231
self.settable['maxrepeats'] = 'Max number of `--repeat`s allowed'
@@ -63,7 +62,7 @@ def do_speak(self, opts, arg):
6362
def do_mumble(self, opts, arg):
6463
"""Mumbles what you tell me to."""
6564
repetitions = opts.repeat or 1
66-
arg = arg.split()
65+
#arg = arg.split()
6766
for i in range(min(repetitions, self.maxrepeats)):
6867
output = []
6968
if random.random() < .33:
@@ -229,15 +228,15 @@ def test_invalid_syntax(_cmdline_app, capsys):
229228
('characterclass.txt', False),
230229
('dotstar.txt', False),
231230
('extension_notation.txt', False),
232-
# ('from_cmdloop.txt', True),
231+
('from_cmdloop.txt', True),
233232
('multiline_no_regex.txt', False),
234233
('multiline_regex.txt', False),
235234
('regex_set.txt', False),
236235
('singleslash.txt', False),
237236
('slashes_escaped.txt', False),
238237
('slashslash.txt', False),
239238
('spaces.txt', False),
240-
# ('word_boundaries.txt', False),
239+
('word_boundaries.txt', False),
241240
])
242241
def test_transcript(request, capsys, filename, feedback_to_output):
243242
# Create a cmd2.Cmd() instance and make sure basic settings are

tests/transcripts/from_cmdloop.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ optional arguments:/ */
1919
-s, --shout N00B EMULATION MODE/ */
2020
-r REPEAT, --repeat REPEAT/ */
2121
output [n] times
22-
2322
(Cmd) say goodnight, Gracie
2423
goodnight, Gracie
2524
(Cmd) say -ps --repeat=5 goodnight, Gracie

0 commit comments

Comments
 (0)