Updated tests to run in GitHub actions

This commit is contained in:
Rhet Turnbull
2020-10-03 13:48:18 -07:00
parent 2e652b04d0
commit 4099253c8e
4 changed files with 24 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
""" test FileUtil """
import os
import pytest
TEST_HEIC = "tests/test-images/IMG_3092.heic"
@@ -72,6 +73,10 @@ def test_unlink_file():
assert not os.path.isfile(dest)
@pytest.mark.skipif(
"OSXPHOTOS_TEST_CONVERT" not in os.environ,
reason="Skip if running in Github actions, no GPU.",
)
def test_convert_to_jpeg():
""" test convert_to_jpeg """
import pathlib
@@ -85,7 +90,10 @@ def test_convert_to_jpeg():
assert FileUtil.convert_to_jpeg(imgfile, outfile)
assert outfile.is_file()
@pytest.mark.skipif(
"OSXPHOTOS_TEST_CONVERT" not in os.environ,
reason="Skip if running in Github actions, no GPU.",
)
def test_convert_to_jpeg_quality():
""" test convert_to_jpeg with compression_quality """
import pathlib