@@ -182,14 +182,6 @@ def test_base_error(base_app):
182
182
assert out == ["*** Unknown syntax: meow" ]
183
183
184
184
185
- def test_base_pause (base_app ):
186
- # Mock out the input call so we don't actually wait for a user's response on stdin
187
- m = mock .MagicMock (name = 'input' , return_value = '\n ' )
188
- sm .input = m
189
-
190
- run_cmd (base_app , 'pause' )
191
- m .assert_called_once ()
192
-
193
185
def test_base_history (base_app ):
194
186
run_cmd (base_app , 'help' )
195
187
run_cmd (base_app , 'shortcuts' )
@@ -556,9 +548,9 @@ def test_pipe_to_shell(base_app):
556
548
# Windows
557
549
# Get help menu and pipe it's output to the sort shell command
558
550
out = run_cmd (base_app , 'help | sort' )
559
- expected = ['' , '' , '_relative_load edit history pause pyscript run set shortcuts ' ,
551
+ expected = ['' , '' , '_relative_load edit history py quit save shell show ' ,
560
552
'========================================' ,
561
- 'cmdenvironment help load py quit save shell show ' ,
553
+ 'cmdenvironment help load pyscript run set shortcuts ' ,
562
554
'Documented commands (type help <topic>):' ]
563
555
assert out == expected
564
556
else :
@@ -870,8 +862,8 @@ def do_squat(self, arg):
870
862
def help_squat (self ):
871
863
self .stdout .write ('This command does diddly squat...\n ' )
872
864
873
- def do_pause (self , arg ):
874
- """This overrides the pause command and does nothing."""
865
+ def do_edit (self , arg ):
866
+ """This overrides the edit command and does nothing."""
875
867
pass
876
868
877
869
# This command will be in the "undocumented" section of the help menu
@@ -894,8 +886,8 @@ def test_custom_help_menu(help_app):
894
886
expected = normalize ("""
895
887
Documented commands (type help <topic>):
896
888
========================================
897
- _relative_load edit history pause pyscript run set shortcuts squat
898
- cmdenvironment help load py quit save shell show
889
+ _relative_load edit history py quit save shell show
890
+ cmdenvironment help load pyscript run set shortcuts squat
899
891
900
892
Undocumented commands:
901
893
======================
@@ -909,8 +901,8 @@ def test_help_undocumented(help_app):
909
901
assert out == expected
910
902
911
903
def test_help_overridden_method (help_app ):
912
- out = run_cmd (help_app , 'help pause ' )
913
- expected = normalize ('This overrides the pause command and does nothing.' )
904
+ out = run_cmd (help_app , 'help edit ' )
905
+ expected = normalize ('This overrides the edit command and does nothing.' )
914
906
assert out == expected
915
907
916
908
0 commit comments