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

Method test_main_success

tests/test_entrypoints.py:12–17  ·  view source on GitHub ↗

Test main() executes successfully with valid Python version.

(self, mock_check_version, mock_toolchain)

Source from the content-addressed store, hash-verified

10 @mock.patch('pythonforandroid.toolchain.ToolchainCL')
11 @mock.patch('pythonforandroid.entrypoints.check_python_version')
12 def test_main_success(self, mock_check_version, mock_toolchain):
13 """Test main() executes successfully with valid Python version."""
14 main()
15
16 mock_check_version.assert_called_once()
17 mock_toolchain.assert_called_once()
18
19 @mock.patch('pythonforandroid.entrypoints.handle_build_exception')
20 @mock.patch('pythonforandroid.toolchain.ToolchainCL')

Callers

nothing calls this directly

Calls 1

mainFunction · 0.90

Tested by

no test coverage detected