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

Method test_build_dist_dirs

tests/test_bootstrap.py:94–107  ·  view source on GitHub ↗

A test which will initialize a bootstrap and will check if the directories we set has the values that we expect. Here we test methods: - :meth:`~pythonforandroid.bootstrap.Bootstrap.get_build_dir` - :meth:`~pythonforandroid.bootstrap.Bootstrap.get_dist_dir`

(self)

Source from the content-addressed store, hash-verified

92 bs.dist_dir.endswith(f"dists/{expected_folder_name}"))
93
94 def test_build_dist_dirs(self):
95 """A test which will initialize a bootstrap and will check if the
96 directories we set has the values that we expect. Here we test methods:
97
98 - :meth:`~pythonforandroid.bootstrap.Bootstrap.get_build_dir`
99 - :meth:`~pythonforandroid.bootstrap.Bootstrap.get_dist_dir`
100 - :meth:`~pythonforandroid.bootstrap.Bootstrap.get_common_dir`
101 """
102 bs = Bootstrap.get_bootstrap("sdl2", self.ctx)
103
104 self.assertTrue(
105 bs.get_build_dir().endswith("build/bootstrap_builds/sdl2")
106 )
107 self.assertTrue(bs.get_dist_dir("test_prj").endswith("dists/test_prj"))
108
109 def test__cmp_bootstraps_by_priority(self):
110 # Test service_only has higher priority than sdl2:

Callers

nothing calls this directly

Calls 3

get_bootstrapMethod · 0.80
get_dist_dirMethod · 0.80
get_build_dirMethod · 0.45

Tested by

no test coverage detected