-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtest.py
88 lines (67 loc) · 2.82 KB
/
test.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import unittest
from pyppi.tests import (
test_database,
test_database_utilities,
test_features,
test_uniprot,
test_db_models,
test_validators,
test_ontology,
test_datamining_tools,
test_generic,
test_hprd,
test_kegg,
test_sampling,
test_chain,
test_br,
test_kfold,
test_predict,
test_predict_utilities,
test_base_utilities,
test_model_utilities
)
if __name__ == "__main__":
loader = unittest.TestLoader()
tests = loader.discover(start_dir='./', pattern="test_*.py")
unittest.TextTestRunner().run(tests)
# tests = loader.discover(start_dir='./', pattern="test_database.py")
# unittest.TextTestRunner().run(tests)
# tests = loader.discover(
# start_dir='./', pattern="test_database_utilities.py")
# unittest.TextTestRunner().run(tests)
# tests = loader.discover(start_dir='./', pattern="test_features.py")
# unittest.TextTestRunner().run(tests)
# tests = loader.discover(start_dir='./', pattern="test_uniprot.py")
# unittest.TextTestRunner().run(tests)
# tests = loader.discover(start_dir='./', pattern="test_db_models.py")
# unittest.TextTestRunner().run(tests)
# tests = loader.discover(start_dir='./', pattern="test_validators.py")
# unittest.TextTestRunner().run(tests)
# tests = loader.discover(start_dir='./', pattern="test_ontology.py")
# unittest.TextTestRunner().run(tests)
# tests = loader.discover(
# start_dir='./', pattern="test_datamining_tools.py")
# unittest.TextTestRunner().run(tests)
# tests = loader.discover(start_dir='./', pattern="test_generic.py")
# unittest.TextTestRunner().run(tests)
# tests = loader.discover(start_dir='./', pattern="test_hprd.py")
# unittest.TextTestRunner().run(tests)
# tests = loader.discover(start_dir='./', pattern="test_kegg.py")
# unittest.TextTestRunner().run(tests)
# tests = loader.discover(start_dir='./', pattern="test_sampling.py")
# unittest.TextTestRunner().run(tests)
# tests = loader.discover(start_dir='./', pattern="test_chain.py")
# unittest.TextTestRunner().run(tests)
# tests = loader.discover(start_dir='./', pattern="test_br.py")
# unittest.TextTestRunner().run(tests)
# tests = loader.discover(start_dir='./', pattern="test_kfold.py")
# unittest.TextTestRunner().run(tests)
# tests = loader.discover(start_dir='./', pattern="test_predict.py")
# unittest.TextTestRunner().run(tests)
# tests = loader.discover(
# start_dir='./', pattern="test_predict_utilities.py")
# unittest.TextTestRunner().run(tests)
# tests = loader.discover(start_dir='./', pattern="test_base_utilities.py")
# unittest.TextTestRunner().run(tests)
# tests = loader.discover(start_dir='./', pattern="test_model_utilities.py")
# unittest.TextTestRunner().run(tests)