forked from marcus-burton/abc-bank-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
23 lines (20 loc) · 691 Bytes
/
test.py
File metadata and controls
23 lines (20 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from tests import bank_tests, customer_tests, transaction_tests
def run():
print 'Running bank tests...'
b_tests = [getattr(bank_tests, obj) for obj in dir(bank_tests)
if 'test_' in obj]
for func in b_tests:
func()
print 'Running customer tests...'
c_tests = [getattr(customer_tests, obj) for obj in dir(customer_tests)
if 'test_' in obj]
for func in c_tests:
func()
print 'Running transactions tests...'
t_tests = [getattr(transaction_tests, obj)
for obj in dir(transaction_tests) if 'test_' in obj]
for func in t_tests:
func()
print 'Done'
if __name__ == '__main__':
run()