-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtests.py
23 lines (19 loc) · 954 Bytes
/
tests.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import argparse
import os
import unittest
from test import test_wallet, test_qr, test_pypayd, test_priceinfo
class BlockchainInterfaces(unittest.TestCase): pass
if __name__ == '__main__':
parser = argparse.ArgumentParser(prog='pypayd_tests', description='Tests for PyPayd')
parser.add_argument("-r","--required-only", help="test only required install", action='store_true')
args = parser.parse_args()
if not args.required_only:
test_wallet.WalletTests.test3_toEncryptedFile = test_wallet.WalletTests.toEncryptedFile
test_wallet.WalletTests.test4_fromEncryptedFile = test_wallet.WalletTests.fromEncryptedFile
loader = unittest.TestLoader()
#loader.sortTestMethodsUsing = None
tests = unittest.TestSuite()
for module in [test_wallet, test_qr, test_pypayd, test_priceinfo]:
tests.addTests(loader.loadTestsFromModule(module))
runner = unittest.TextTestRunner(verbosity=2)
runner.run(tests)