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_recipe_test_suite_runner.py 987 B

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
  1. import sys
  2. import unittest
  3. from tests.recipe_training_tests.automatic_batch_selection_single_gpu_test import TestAutoBatchSelectionSingleGPU
  4. from tests.recipe_training_tests.shortened_recipes_accuracy_test import ShortenedRecipesAccuracyTests
  5. class CoreUnitTestSuiteRunner:
  6. def __init__(self):
  7. self.test_loader = unittest.TestLoader()
  8. self.recipe_tests_suite = unittest.TestSuite()
  9. self._add_modules_to_unit_tests_suite()
  10. self.test_runner = unittest.TextTestRunner(verbosity=3, stream=sys.stdout)
  11. def _add_modules_to_unit_tests_suite(self):
  12. """
  13. _add_modules_to_unit_tests_suite - Adds unit tests to the Unit Tests Test Suite
  14. :return:
  15. """
  16. self.recipe_tests_suite.addTest(self.test_loader.loadTestsFromModule(ShortenedRecipesAccuracyTests))
  17. self.recipe_tests_suite.addTest(self.test_loader.loadTestsFromModule(TestAutoBatchSelectionSingleGPU))
  18. if __name__ == "__main__":
  19. unittest.main()
Tip!

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

Comments

Loading...