sh_cpl/unittests/unittests_query/query_test_suite.py

28 lines
1.0 KiB
Python
Raw Normal View History

2022-05-26 15:53:23 +02:00
import unittest
2022-09-13 19:33:26 +02:00
from unittests_query.enumerable_query_test_case import EnumerableQueryTestCase
2022-09-13 12:07:04 +02:00
from unittests_query.enumerable_test_case import EnumerableTestCase
2022-09-13 19:33:26 +02:00
from unittests_query.iterable_query_test_case import IterableQueryTestCase
2022-05-26 15:53:23 +02:00
from unittests_query.iterable_test_case import IterableTestCase
2022-09-14 13:23:23 +02:00
from unittests_query.sequence_test_case import SequenceTestCase
2022-05-26 15:53:23 +02:00
class QueryTestSuite(unittest.TestSuite):
def __init__(self):
unittest.TestSuite.__init__(self)
loader = unittest.TestLoader()
2022-09-14 13:23:23 +02:00
self.addTests(loader.loadTestsFromTestCase(SequenceTestCase))
2022-09-13 12:07:04 +02:00
self.addTests(loader.loadTestsFromTestCase(EnumerableTestCase))
2022-09-13 19:33:26 +02:00
self.addTests(loader.loadTestsFromTestCase(EnumerableQueryTestCase))
2022-05-26 15:53:23 +02:00
self.addTests(loader.loadTestsFromTestCase(IterableTestCase))
2022-09-13 19:33:26 +02:00
self.addTests(loader.loadTestsFromTestCase(IterableQueryTestCase))
2022-05-26 15:53:23 +02:00
def run(self, *args):
super().run(*args)
2022-09-14 13:23:23 +02:00
if __name__ == "__main__":
runner = unittest.TextTestRunner()
runner.run(QueryTestSuite())