Python_Unittests/tests/tester.py

24 lines
462 B
Python
Raw Permalink Normal View History

2020-12-13 01:04:41 +01:00
import unittest
from tests.Program_test import ProgramTest
class Tester:
def __init__(self):
self._suite = unittest.TestSuite()
def create(self):
self._suite.addTest(ProgramTest('test_sqrt'))
self._suite.addTest(ProgramTest('test_date'))
def start(self):
runner = unittest.TextTestRunner()
runner.run(self._suite)
if __name__ == '__main__':
tester = Tester()
tester.create()
tester.start()