2020-01-18 01:54:17 +03:00
|
|
|
"""Unit tests for the durable functions library"""
|
2019-08-02 00:27:36 +03:00
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
import unittest
|
|
|
|
|
|
|
|
|
|
|
|
def suite():
|
2020-01-18 01:54:17 +03:00
|
|
|
"""
|
|
|
|
|
|
|
|
:return: configuration for the suite of tests
|
|
|
|
"""
|
2019-08-02 00:27:36 +03:00
|
|
|
test_loader = unittest.TestLoader()
|
|
|
|
test_suite = test_loader.discover(
|
|
|
|
os.path.dirname(__file__), pattern='test_*.py')
|
|
|
|
return test_suite
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
runner = unittest.runner.TextTestRunner()
|
|
|
|
result = runner.run(suite())
|
|
|
|
sys.exit(not result.wasSuccessful())
|