@@ -182,14 +182,6 @@ def test_base_error(base_app):
182182 assert out == ["*** Unknown syntax: meow" ]
183183
184184
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-
193185def test_base_history (base_app ):
194186 run_cmd (base_app , 'help' )
195187 run_cmd (base_app , 'shortcuts' )
@@ -556,9 +548,9 @@ def test_pipe_to_shell(base_app):
556548 # Windows
557549 # Get help menu and pipe it's output to the sort shell command
558550 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 ' ,
560552 '========================================' ,
561- 'cmdenvironment help load py quit save shell show ' ,
553+ 'cmdenvironment help load pyscript run set shortcuts ' ,
562554 'Documented commands (type help <topic>):' ]
563555 assert out == expected
564556 else :
@@ -870,8 +862,8 @@ def do_squat(self, arg):
870862 def help_squat (self ):
871863 self .stdout .write ('This command does diddly squat...\n ' )
872864
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."""
875867 pass
876868
877869 # This command will be in the "undocumented" section of the help menu
@@ -894,8 +886,8 @@ def test_custom_help_menu(help_app):
894886 expected = normalize ("""
895887Documented commands (type help <topic>):
896888========================================
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
899891
900892Undocumented commands:
901893======================
@@ -909,8 +901,8 @@ def test_help_undocumented(help_app):
909901 assert out == expected
910902
911903def 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.' )
914906 assert out == expected
915907
916908
0 commit comments