MCPcopy Create free account
hub / github.com/kivy/python-for-android / setUp

Method setUp

tests/test_recipe.py:257–266  ·  view source on GitHub ↗

Initialize a Context with a Bootstrap and a Distribution to properly test a recipe which depends on android's STL library, to do so we reuse `BaseClassSetupBootstrap`

(self)

Source from the content-addressed store, hash-verified

255
256class TesSTLRecipe(BaseClassSetupBootstrap, unittest.TestCase):
257 def setUp(self):
258 """
259 Initialize a Context with a Bootstrap and a Distribution to properly
260 test a recipe which depends on android's STL library, to do so we reuse
261 `BaseClassSetupBootstrap`
262 """
263 super().setUp()
264 self.ctx.bootstrap = Bootstrap().get_bootstrap('sdl2', self.ctx)
265 self.setUp_distribution_with_bootstrap(self.ctx.bootstrap)
266 self.ctx.python_recipe = Recipe.get_recipe('python3', self.ctx)
267
268 @mock.patch('shutil.which')
269 @mock.patch('pythonforandroid.build.ensure_dir')

Callers 1

setUpMethod · 0.45

Calls 4

BootstrapClass · 0.90
get_bootstrapMethod · 0.80
get_recipeMethod · 0.80

Tested by

no test coverage detected