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)
| 255 | |
| 256 | class 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') |
no test coverage detected