The code in file test.py
should look like:
from tests import *
import unittest
if __name__ == '__main__':
testsuite = unittest.TestLoader().discover('.')
unittest.TextTestRunner(verbosity=1).run(testsuite)
This code copies all tests from tests
directory, because it copies entire package. The main method runs all test methods included in tests
package's classes. Each test file name must start with test
.