Add build test for filesystem locations

This commit is contained in:
Kovid Goyal 2021-02-19 13:42:20 +05:30
parent a920919b13
commit 38a7e77058
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -43,6 +43,11 @@ class TestBuild(unittest.TestCase):
self.assertIn('hints', names)
self.assertGreater(len(names), 8)
def test_filesystem_locations(self) -> None:
from kitty.constants import terminfo_dir, logo_png_file
self.assertTrue(os.path.isdir(terminfo_dir), f'Terminfo dir: {terminfo_dir}')
self.assertTrue(os.path.exists(logo_png_file), f'Logo file: {logo_png_file}')
def main() -> None:
tests = unittest.defaultTestLoader.loadTestsFromTestCase(TestBuild)