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

Method test_python_module_parser

tests/test_build.py:29–42  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

27 'No Python modules and no setup.py to process, skipping')
28
29 def test_python_module_parser(self):
30 ctx = mock.Mock(recipe_build_order=[])
31 ctx.archs = [ArchARMv7_a(ctx), ArchAarch_64(ctx)]
32 ctx.extra_index_urls = []
33 ctx.ndk_api = 24
34 arch = ctx.archs[0]
35
36 # should not alter original module name (like with adding version number)
37 assert "kivy_garden.frostedglass" in process_python_modules(ctx, ["kivy_garden.frostedglass"], arch)
38
39 # should skip urls and other unsupported format
40 modules = ["https://example.com/some.zip", "git+https://github.com/kivy/python-for-android@develop"]
41 result = process_python_modules(ctx, modules, arch)
42 assert modules == result
43
44 def test_is_wheel_compatible(self):
45 ctx = mock.Mock(recipe_build_order=[])

Callers

nothing calls this directly

Calls 3

ArchARMv7_aClass · 0.90
ArchAarch_64Class · 0.90
process_python_modulesFunction · 0.90

Tested by

no test coverage detected