Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

deci_core_integration_test_suite_runner.py 1.4 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  1. import sys
  2. import unittest
  3. from tests.integration_tests import EMAIntegrationTest, LRTest, PoseEstimationModelsIntegrationTest, YoloNASIntegrationTest, YoloNASPoseIntegrationTest
  4. from tests.integration_tests.coco_parsing_test import COCOParsingTest
  5. class CoreIntegrationTestSuiteRunner:
  6. def __init__(self):
  7. self.test_loader = unittest.TestLoader()
  8. self.integration_tests_suite = unittest.TestSuite()
  9. self._add_modules_to_integration_tests_suite()
  10. self.test_runner = unittest.TextTestRunner(verbosity=3, stream=sys.stdout)
  11. def _add_modules_to_integration_tests_suite(self):
  12. """
  13. _add_modules_to_integration_tests_suite - Adds unit tests to the Unit Tests Test Suite
  14. :return:
  15. """
  16. self.integration_tests_suite.addTest(self.test_loader.loadTestsFromModule(EMAIntegrationTest))
  17. self.integration_tests_suite.addTest(self.test_loader.loadTestsFromModule(LRTest))
  18. self.integration_tests_suite.addTest(self.test_loader.loadTestsFromModule(PoseEstimationModelsIntegrationTest))
  19. self.integration_tests_suite.addTest(self.test_loader.loadTestsFromModule(YoloNASIntegrationTest))
  20. self.integration_tests_suite.addTest(self.test_loader.loadTestsFromModule(YoloNASPoseIntegrationTest))
  21. self.integration_tests_suite.addTest(self.test_loader.loadTestsFromModule(COCOParsingTest))
  22. if __name__ == "__main__":
  23. unittest.main()
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...