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

Method test_should_build

tests/test_recipe.py:222–232  ·  view source on GitHub ↗
(self, mock_exists)

Source from the content-addressed store, hash-verified

220
221 @mock.patch('pythonforandroid.recipe.exists')
222 def test_should_build(self, mock_exists):
223 # avoid trying to find the recipe in a non-existing storage directory
224 self.ctx.storage_dir = None
225
226 arch = ArchAarch_64(self.ctx)
227 recipe = Recipe.get_recipe('openssl', self.ctx)
228 recipe.ctx = self.ctx
229 self.assertFalse(recipe.should_build(arch))
230
231 mock_exists.return_value = False
232 self.assertTrue(recipe.should_build(arch))
233
234 @mock.patch('pythonforandroid.recipe.Recipe.get_libraries')
235 @mock.patch('pythonforandroid.recipe.Recipe.install_libs')

Callers

nothing calls this directly

Calls 3

ArchAarch_64Class · 0.90
get_recipeMethod · 0.80
should_buildMethod · 0.45

Tested by

no test coverage detected