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

Method defaults_to_sys_argv

tests/program.py:110–116  ·  view source on GitHub ↗
(self, mock_sys)

Source from the content-addressed store, hash-verified

108 class normalize_argv:
109 @patch("invoke.program.sys")
110 def defaults_to_sys_argv(self, mock_sys):
111 argv = ["inv", "--version"]
112 mock_sys.argv = argv
113 p = Program()
114 p.print_version = Mock()
115 p.run(exit=False)
116 p.print_version.assert_called()
117
118 def uses_a_list_unaltered(self):
119 p = Program()

Callers

nothing calls this directly

Calls 2

runMethod · 0.95
ProgramClass · 0.90

Tested by

no test coverage detected