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

Method test_install_libraries

tests/test_recipe.py:236–253  ·  view source on GitHub ↗
(self, mock_install_libs, mock_get_libraries)

Source from the content-addressed store, hash-verified

234 @mock.patch('pythonforandroid.recipe.Recipe.get_libraries')
235 @mock.patch('pythonforandroid.recipe.Recipe.install_libs')
236 def test_install_libraries(self, mock_install_libs, mock_get_libraries):
237 mock_get_libraries.return_value = {
238 '/build_lib/libsample1.so',
239 '/build_lib/libsample2.so',
240 }
241 self.ctx.recipe_build_order = [
242 "hostpython3",
243 "openssl",
244 "python3",
245 "sdl2",
246 "kivy",
247 ]
248 arch = ArchAarch_64(self.ctx)
249 recipe = Recipe.get_recipe('openssl', self.ctx)
250 recipe.install_libraries(arch)
251 mock_install_libs.assert_called_once_with(
252 arch, *mock_get_libraries.return_value
253 )
254
255
256class TesSTLRecipe(BaseClassSetupBootstrap, unittest.TestCase):

Callers

nothing calls this directly

Calls 3

ArchAarch_64Class · 0.90
get_recipeMethod · 0.80
install_librariesMethod · 0.45

Tested by

no test coverage detected