2020-02-03 23:05:45 +01:00
|
|
|
#!/usr/bin/env python3
|
2017-07-24 22:38:48 +01:00
|
|
|
|
2019-11-12 23:51:27 +00:00
|
|
|
import os
|
|
|
|
|
import subprocess
|
|
|
|
|
import sys
|
2017-03-20 23:54:29 +00:00
|
|
|
|
2017-09-06 15:07:58 +02:00
|
|
|
if __name__ == '__main__':
|
|
|
|
|
# move cwd to the project root
|
|
|
|
|
os.chdir(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
2017-09-01 13:32:34 +01:00
|
|
|
|
2019-11-12 23:51:27 +00:00
|
|
|
# run the unit tests
|
2017-09-07 21:59:04 +01:00
|
|
|
subprocess.check_call([sys.executable, '-m', 'pytest', 'unit_test'])
|
2017-09-01 13:32:34 +01:00
|
|
|
|
2019-11-12 23:51:27 +00:00
|
|
|
# run the integration tests
|
2020-05-02 22:57:03 +01:00
|
|
|
subprocess.check_call([sys.executable, '-m', 'pytest', 'test'])
|