(self, mock_install_libs, mock_get_libraries)
| 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 | |
| 256 | class TesSTLRecipe(BaseClassSetupBootstrap, unittest.TestCase): |
nothing calls this directly
no test coverage detected