diff options
author | aqua <aqua@iserlohn-fortress.net> | 2024-08-07 17:36:57 +0300 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2024-08-07 17:36:57 +0300 |
commit | dcd2f898af9d4efcb22417c19fa1b3abc8c548c5 (patch) | |
tree | 3ef0eaa4b9595bf90c733e8f196edd1c3f72c472 /tools/interface_generator/templates_unittest.py | |
parent | Added interface_generator (diff) | |
download | kernel-dcd2f898af9d4efcb22417c19fa1b3abc8c548c5.tar.xz |
Added bazel rule for interface_generator
Diffstat (limited to 'tools/interface_generator/templates_unittest.py')
-rwxr-xr-x | tools/interface_generator/templates_unittest.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/interface_generator/templates_unittest.py b/tools/interface_generator/templates_unittest.py new file mode 100755 index 0000000..594753d --- /dev/null +++ b/tools/interface_generator/templates_unittest.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python3 + +import unittest +import templates +from pathlib import Path + + +class Templates(unittest.TestCase): + def test_get_templates(self): + path = Path("templates") + result = templates.get_templates(path) + + self.assertGreater(len(result), 0) + for template in result: + self.assertTrue(isinstance(template, Path)) + self.assertTrue(template.exists()) + self.assertTrue(template.is_file()) + + +if __name__ == "__main__": + unittest.main() |