(self, mock_exists)
| 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') |
nothing calls this directly
no test coverage detected