summaryrefslogtreecommitdiff
path: root/Omni/Test.py
diff options
context:
space:
mode:
Diffstat (limited to 'Omni/Test.py')
-rw-r--r--Omni/Test.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/Omni/Test.py b/Omni/Test.py
index 495334a..71ac32a 100644
--- a/Omni/Test.py
+++ b/Omni/Test.py
@@ -6,10 +6,17 @@ import Omni.Log as Log
import typing
import unittest
+TestCase = unittest.TestCase
+
+
+class TestError(Exception):
+ """When the test environment or harness encounters a problem."""
+
def run(area: App.Area, tests: list[typing.Any]) -> None:
"""Run the given tests with loglevel determined by area."""
- Log.setup(logging.DEBUG if area == App.Area.Test else logging.ERROR)
+ logger = logging.getLogger(__name__)
+ Log.setup(logger, logging.DEBUG if area == App.Area.Test else logging.ERROR)
suite = unittest.TestSuite()
suite.addTests([
unittest.defaultTestLoader.loadTestsFromTestCase(tc) for tc in tests