From f25d664f5ca2f464aa43cc1e3032f747ab3517d4 Mon Sep 17 00:00:00 2001 From: bieniekmat Date: Wed, 5 Apr 2023 16:32:59 +0100 Subject: [PATCH] returning pytest results --- ties/testing/run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ties/testing/run.py b/ties/testing/run.py index 1d3f015..a5441ed 100644 --- a/ties/testing/run.py +++ b/ties/testing/run.py @@ -8,7 +8,7 @@ def main(): test_dir = os.path.join(site.getsitepackages()[0], 'ties', 'testing') tmp_test_dir = os.path.join(tmpdirname, 'ties', 'unit_testing', 'testing') shutil.copytree(test_dir, tmp_test_dir) - pytest.main([os.path.join(tmp_test_dir)]) + return pytest.main([os.path.join(tmp_test_dir)]) if __name__ == '__main__': - main() \ No newline at end of file + main()