-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.py
41 lines (33 loc) · 1.29 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
__author__ = 'emil'
from tests import breath_gen_test as bgt
from tests import heart_gen_test as hgt
from tests.responseFunctionTests import run_tests as response_function_tests
from tests.modelTests.spectrumCollectionModelTest import TestSpectrumCollectionModel
from tests.modelTests.measureModelTest import TestMeasureModel
from tests.modelTests.heartbeatsCollectionModelTest import HeartbeatsCollectionModelTest
from tests.networkTest import NetworkTest
print("-----------\nTests begin")
print("--- \nHeart generator testing: ")
heartTest = hgt.TestHeartGen()
heartTest.test_generate()
heartTest.test_generateProcess()
print("OK! \n---")
print("--- \nNetwork testing:")
netT = NetworkTest()
netT.test_learning()
print("--- \nModels testing:")
spectrumModelTest = TestSpectrumCollectionModel()
spectrumModelTest.test_insert_sql()
spectrumModelTest.test_multiple_insert_sql()
measureModelTest = TestMeasureModel()
measureModelTest.test_insert_sql()
heartbeatModelTest = HeartbeatsCollectionModelTest()
heartbeatModelTest.test_insert_sql()
heartbeatModelTest.test_multiple_insert_sql()
print("--- \nBreath generator testing: ")
breathTest = bgt.TestBreathGen()
breathTest.test_generate()
breathTest.test_generateProcess()
print("OK! \n---")
response_function_tests.run_tests()
print("\n-----------\nTests finished")