A test which will initialize a bootstrap and will check if the method :meth:`~pythonforandroid.bootstrap.Bootstrap.all_bootstraps ` returns the expected values, which should be: `empty", `service_only`, `webview`, `sdl2`, `sdl3` and `qt`
(self)
| 141 | ) < 0) |
| 142 | |
| 143 | def test_all_bootstraps(self): |
| 144 | """A test which will initialize a bootstrap and will check if the |
| 145 | method :meth:`~pythonforandroid.bootstrap.Bootstrap.all_bootstraps ` |
| 146 | returns the expected values, which should be: `empty", `service_only`, |
| 147 | `webview`, `sdl2`, `sdl3` and `qt` |
| 148 | """ |
| 149 | expected_bootstraps = { |
| 150 | "empty", |
| 151 | "service_only", |
| 152 | "service_library", |
| 153 | "webview", |
| 154 | "sdl2", |
| 155 | "sdl3", |
| 156 | "qt", |
| 157 | } |
| 158 | set_of_bootstraps = Bootstrap.all_bootstraps() |
| 159 | self.assertEqual( |
| 160 | expected_bootstraps, expected_bootstraps & set_of_bootstraps |
| 161 | ) |
| 162 | self.assertEqual(len(expected_bootstraps), len(set_of_bootstraps)) |
| 163 | |
| 164 | def test_expand_dependencies(self): |
| 165 | # Test dependency expansion of a recipe with no alternatives: |
nothing calls this directly
no test coverage detected