sh_cpl/unittests/unittests_translation/translation_test_suite.py

23 lines
602 B
Python
Raw Permalink Normal View History

2022-07-10 17:56:38 +02:00
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
2023-02-20 15:55:20 +01:00
active_tests = [TranslationTestCase]
2022-07-10 17:56:38 +02:00
for test in active_tests:
self.addTests(loader.loadTestsFromTestCase(test))
def run(self, *args):
self._result = super().run(*args)