Skip to content

Commit 84df2ad

Browse files
author
kwaak
committed
test: add import tests for vec_inf modules to ensure core dependency functionality
1 parent 6755157 commit 84df2ad

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/test_imports.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Import test for vec_inf modules
2+
# This script tests the importability of all modules in the vec_inf package using only core dependencies
3+
4+
import unittest
5+
6+
class TestVecInfImports(unittest.TestCase):
7+
def test_import_cli_modules(self):
8+
try:
9+
import vec_inf.cli._cli
10+
import vec_inf.cli._config
11+
import vec_inf.cli._helper
12+
import vec_inf.cli._utils
13+
except ImportError as e:
14+
self.fail(f"Import failed: {e}")
15+
16+
if __name__ == "__main__":
17+
unittest.main()

0 commit comments

Comments
 (0)