@@ -1389,7 +1389,7 @@ def test_echo(capsys):
1389
1389
assert app ._current_script_dir is None
1390
1390
assert out .startswith ('{}{}\n ' .format (app .prompt , command ) + 'history [arg]: lists past commands issued' )
1391
1391
1392
- def test_pseudo_raw_input_tty_rawinput_true (capsys ):
1392
+ def test_pseudo_raw_input_tty_rawinput_true ():
1393
1393
minput = mock .MagicMock (name = 'input' , side_effect = ['set' , 'quit' ])
1394
1394
sm .input = minput
1395
1395
mtty = mock .MagicMock (name = 'isatty' , return_value = True )
@@ -1398,9 +1398,7 @@ def test_pseudo_raw_input_tty_rawinput_true(capsys):
1398
1398
# run the cmdloop, which should pull input from the mocked input
1399
1399
app = cmd2 .Cmd ()
1400
1400
app .use_rawinput = True
1401
- app .abbrev = False
1402
1401
app ._cmdloop ()
1403
- out , err = capsys .readouterr ()
1404
1402
1405
1403
# because we mocked the input() call, we won't see the prompt
1406
1404
# or the name of the command in the output, so we can't check
@@ -1409,7 +1407,7 @@ def test_pseudo_raw_input_tty_rawinput_true(capsys):
1409
1407
# that the rest of it worked
1410
1408
assert minput .call_count == 2
1411
1409
1412
- def test_pseudo_raw_input_tty_rawinput_false (capsys ):
1410
+ def test_pseudo_raw_input_tty_rawinput_false ():
1413
1411
# mock up the input
1414
1412
fakein = io .StringIO (u'{}' .format ('set\n quit\n ' ))
1415
1413
mtty = mock .MagicMock (name = 'isatty' , return_value = True )
@@ -1420,9 +1418,7 @@ def test_pseudo_raw_input_tty_rawinput_false(capsys):
1420
1418
# run the cmdloop, telling it where to get input from
1421
1419
app = cmd2 .Cmd (stdin = fakein )
1422
1420
app .use_rawinput = False
1423
- app .abbrev = False
1424
1421
app ._cmdloop ()
1425
- out , err = capsys .readouterr ()
1426
1422
1427
1423
# because we mocked the readline() call, we won't see the prompt
1428
1424
# or the name of the command in the output, so we can't check
0 commit comments