MCPcopy Index your code
hub / github.com/kivy/python-for-android / test_all_bootstraps

Method test_all_bootstraps

tests/test_bootstrap.py:143–162  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 1

all_bootstrapsMethod · 0.80

Tested by

no test coverage detected