sh_cpl/unittests/unittests_translation/translation_test_suite.py
2023-02-20 15:55:20 +01:00

23 lines
602 B
Python

import unittest
from typing import Optional
from unittest import TestResult
from unittests_translation.translation_test_case import TranslationTestCase
class TranslationTestSuite(unittest.TestSuite):
def __init__(self):
unittest.TestSuite.__init__(self)
loader = unittest.TestLoader()
self._result: Optional[TestResult] = None
self._is_online = True
active_tests = [TranslationTestCase]
for test in active_tests:
self.addTests(loader.loadTestsFromTestCase(test))
def run(self, *args):
self._result = super().run(*args)