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.2 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
  1. import sys
  2. import unittest
  3. from tests.integration_tests import EMAIntegrationTest, LRTest, PoseEstimationModelsIntegrationTest, YoloNASIntegrationTest, YoloNASPoseIntegrationTest
  4. class CoreIntegrationTestSuiteRunner:
  5. def __init__(self):
  6. self.test_loader = unittest.TestLoader()
  7. self.integration_tests_suite = unittest.TestSuite()
  8. self._add_modules_to_integration_tests_suite()
  9. self.test_runner = unittest.TextTestRunner(verbosity=3, stream=sys.stdout)
  10. def _add_modules_to_integration_tests_suite(self):
  11. """
  12. _add_modules_to_integration_tests_suite - Adds unit tests to the Unit Tests Test Suite
  13. :return:
  14. """
  15. self.integration_tests_suite.addTest(self.test_loader.loadTestsFromModule(EMAIntegrationTest))
  16. self.integration_tests_suite.addTest(self.test_loader.loadTestsFromModule(LRTest))
  17. self.integration_tests_suite.addTest(self.test_loader.loadTestsFromModule(PoseEstimationModelsIntegrationTest))
  18. self.integration_tests_suite.addTest(self.test_loader.loadTestsFromModule(YoloNASIntegrationTest))
  19. self.integration_tests_suite.addTest(self.test_loader.loadTestsFromModule(YoloNASPoseIntegrationTest))
  20. if __name__ == "__main__":
  21. unittest.main()
Tip!

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

Comments

Loading...