summaryrefslogtreecommitdiffstats
path: root/tests/tests.py
blob: 5a2837ef1e60b5345613617d74764ef8f8aa2783 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from __future__ import absolute_import
from custodia.secrets import SecretsTests
from custodia.store.sqlite import SqliteStoreTests
from custodia.message.kem import KEMTests
from tests.custodia import CustodiaTests
import unittest

if __name__ == '__main__':
    testLoad = unittest.TestLoader()

    allUnitTests = [testLoad.loadTestsFromTestCase(SecretsTests),
                    testLoad.loadTestsFromTestCase(SqliteStoreTests),
                    testLoad.loadTestsFromTestCase(KEMTests),
                    testLoad.loadTestsFromTestCase(CustodiaTests)]

    allTestsSuite = unittest.TestSuite(allUnitTests)

    testRunner = unittest.TextTestRunner()
    testRunner.run(allTestsSuite)