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)
| 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: |
nothing calls this directly
no test coverage detected