2026-11-15 21:40:44 +01:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
|
|
import sys
|
2026-11-15 22:02:56 +01:00
|
|
|
import unittest
|
2026-11-15 21:40:44 +01:00
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
|
|
ROOT = Path(__file__).resolve().parent
|
|
|
|
|
SRC = ROOT / "src"
|
|
|
|
|
if str(SRC) not in sys.path:
|
|
|
|
|
sys.path.insert(0, str(SRC))
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2026-11-15 22:02:56 +01:00
|
|
|
suite = unittest.defaultTestLoader.discover(str(ROOT / "tests"))
|
|
|
|
|
result = unittest.TextTestRunner(verbosity=2).run(suite)
|
|
|
|
|
raise SystemExit(not result.wasSuccessful())
|