From 38a7e77058e132aaf1ff27b313226309387c3bf0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 19 Feb 2021 13:42:20 +0530 Subject: [PATCH] Add build test for filesystem locations --- kitty/check_build.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kitty/check_build.py b/kitty/check_build.py index 828b96ed5..674ad3a23 100644 --- a/kitty/check_build.py +++ b/kitty/check_build.py @@ -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)