-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
26 lines (20 loc) · 665 Bytes
/
test.py
File metadata and controls
26 lines (20 loc) · 665 Bytes
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
# test.py
# author: Sébastien Combéfis
# version: May 3, 2017
import importlib
import sys
import unittest
sys.path.append('CodeExamples')
import lib
from lib.test_mathutil import TestMathUtil
suite = unittest.TestLoader().loadTestsFromTestCase(TestMathUtil)
runner = unittest.TextTestRunner()
mathutil_test = not runner.run(suite).wasSuccessful()
sys.path.remove('CodeExamples')
sys.path.append('AIproject')
importlib.reload(lib)
from test_pylos import TestPylosState
suite = unittest.TestLoader().loadTestsFromTestCase(TestPylosState)
runner = unittest.TextTestRunner()
pylos_test = not runner.run(suite).wasSuccessful()
exit(mathutil_test and pylos_test)