forked from gecrooks/weblogo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_corebio.py
executable file
·42 lines (36 loc) · 1.2 KB
/
test_corebio.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env python
import unittest
def suite():
modules_to_test = (
'test_corebio.test_array_io',
'test_corebio.test_clustal_io',
'test_corebio.test_data',
'test_corebio.test_fasta_io',
'test_corebio.test_genbank_io',
'test_corebio.test_intelligenetics_io',
'test_corebio.test_matrix',
'test_corebio.test_moremath',
'test_corebio.test_msf_io',
'test_corebio.test_nbrf_io',
'test_corebio.test_nexus',
'test_corebio.test_nexus_io',
'test_corebio.test_null_io',
'test_corebio.test_phylip_io',
'test_corebio.test_plain_io',
'test_corebio.test_seq',
'test_corebio.test_seq_io',
'test_corebio.test_stockholm_io',
'test_corebio.test_table_io',
'test_corebio.test_transform',
'test_corebio.test_utils',
'test_weblogo'
)
alltests = unittest.TestSuite()
for module in modules_to_test:
alltests.addTest(unittest.defaultTestLoader.loadTestsFromName(module))
return alltests
# Can run single tests as
# > python3.4 -m unittest test_corebio.test_utils
if __name__ == '__main__':
import sys
unittest.main(defaultTest='suite')