MCPcopy Index your code
hub / github.com/kivy/python-for-android / test_help

Method test_help

tests/test_toolchain.py:29–38  ·  view source on GitHub ↗

Calling with `--help` should print help and exit 0.

(self)

Source from the content-addressed store, hash-verified

27class TestToolchainCL:
28
29 def test_help(self):
30 """
31 Calling with `--help` should print help and exit 0.
32 """
33 argv = ['toolchain.py', '--help', '--storage-dir=/tmp']
34 with patch_sys_argv(argv), raises_system_exit(
35 ) as ex_info, patch_argparse_print_help() as m_print_help:
36 ToolchainCL()
37 assert ex_info.value.code == 0
38 assert m_print_help.call_args_list == [mock.call()]
39
40 @pytest.mark.skipif(sys.version_info < (3, 0), reason="requires python3")
41 def test_unknown(self):

Callers

nothing calls this directly

Calls 4

ToolchainCLClass · 0.90
patch_sys_argvFunction · 0.85
raises_system_exitFunction · 0.85

Tested by

no test coverage detected