(self)
| 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=[]) |
nothing calls this directly
no test coverage detected