From 9324d8e7954f34e76ab59e75c58fa5431a9bb39c Mon Sep 17 00:00:00 2001 From: Rhet Turnbull Date: Sat, 3 Oct 2020 13:57:46 -0700 Subject: [PATCH] Updated tests --- tests/test_image_converter.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test_image_converter.py b/tests/test_image_converter.py index b9d140b1..566accf3 100644 --- a/tests/test_image_converter.py +++ b/tests/test_image_converter.py @@ -1,7 +1,15 @@ """ test ImageConverter """ +import os + import pytest +skip_test = "OSXPHOTOS_TEST_CONVERT" not in os.environ +pytestmark = pytest.mark.skipif( + skip_test, reason="Skip if running on GitHub actions, no GPU." +) + + TEST_HEIC = "tests/test-images/IMG_3092.heic" TEST_RAW = "tests/test-images/IMG_0476_2.CR2" TEST_JPEG = "tests/test-images/IMG_3984.jpeg"