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

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

Comments

Loading...