MCPcopy Index your code
hub / github.com/pyinvoke/invoke / defaults_to_exiting_0

Method defaults_to_exiting_0

tests/program.py:500–504  ·  view source on GitHub ↗
(self, mock_exit)

Source from the content-addressed store, hash-verified

498 class Exit_:
499 @patch("invoke.program.sys.exit")
500 def defaults_to_exiting_0(self, mock_exit):
501 p = Program()
502 p.execute = Mock(side_effect=Exit())
503 p.run("myapp foo")
504 mock_exit.assert_called_once_with(0)
505
506 @trap
507 @patch("invoke.program.sys.exit")

Callers

nothing calls this directly

Calls 3

runMethod · 0.95
ProgramClass · 0.90
ExitClass · 0.90

Tested by

no test coverage detected