Change 'slow' tests to 'docker' tests, only run them on Linux

This commit is contained in:
Joe Rickerby
2020-06-28 10:53:03 +01:00
parent 91c3e90017
commit faf6a76375
3 changed files with 18 additions and 14 deletions
+5 -1
View File
@@ -10,7 +10,11 @@ if __name__ == '__main__':
os.chdir(Path(__file__).resolve().parents[1])
# run the unit tests
subprocess.check_call([sys.executable, '-m', 'pytest', 'unit_test', '--runslow'])
unit_test_args = [sys.executable, '-m', 'pytest', 'unit_test']
# run the docker unit tests only on Linux
if sys.platform.startswith('linux'):
unit_test_args += ['--run-docker']
subprocess.check_call(unit_test_args)
# run the integration tests
subprocess.check_call([sys.executable, '-m', 'pytest', '-x', '--durations', '0', 'test'])