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

Method setUp

tests/test_distribution.py:32–46  ·  view source on GitHub ↗

Configure a :class:`~pythonforandroid.build.Context` so we can perform our unittests

(self)

Source from the content-addressed store, hash-verified

30 TEST_ARCH = 'armeabi-v7a'
31
32 def setUp(self):
33 """Configure a :class:`~pythonforandroid.build.Context` so we can
34 perform our unittests"""
35 self.ctx = Context()
36 self.ctx.ndk_api = 21
37 self.ctx.android_api = 27
38 self.ctx._sdk_dir = "/opt/android/android-sdk"
39 self.ctx._ndk_dir = "/opt/android/android-ndk"
40 self.ctx.setup_dirs(os.getcwd())
41 self.ctx.recipe_build_order = [
42 "hostpython3",
43 "python3",
44 "sdl2",
45 "kivy",
46 ]
47
48 def setUp_distribution_with_bootstrap(self, bs, **kwargs):
49 """Extend the setUp by configuring a distribution, because some test

Callers

nothing calls this directly

Calls 2

ContextClass · 0.90
setup_dirsMethod · 0.80

Tested by

no test coverage detected