A test which will initialize a bootstrap and will check if the method :meth:`~pythonforandroid.bootstrap.Bootstrap.prepare_dist_dir` successfully calls once the method `endure_dir`
(self, mock_ensure_dir)
| 254 | |
| 255 | @mock.patch("pythonforandroid.bootstrap.ensure_dir") |
| 256 | def test_prepare_dist_dir(self, mock_ensure_dir): |
| 257 | """A test which will initialize a bootstrap and will check if the |
| 258 | method :meth:`~pythonforandroid.bootstrap.Bootstrap.prepare_dist_dir` |
| 259 | successfully calls once the method `endure_dir` |
| 260 | """ |
| 261 | bs = Bootstrap().get_bootstrap("sdl2", self.ctx) |
| 262 | |
| 263 | bs.prepare_dist_dir() |
| 264 | mock_ensure_dir.assert_called_once() |
| 265 | |
| 266 | @mock.patch("pythonforandroid.bootstrap.open", create=True) |
| 267 | @mock.patch("pythonforandroid.util.chdir") |
nothing calls this directly
no test coverage detected