From 9be0f849b73061d053d30274ff3295b79c88f0b6 Mon Sep 17 00:00:00 2001 From: Rhet Turnbull Date: Sun, 26 Apr 2020 15:57:43 -0700 Subject: [PATCH] Updated test to avoid issue with GitHub workflow --- tests/test_cli.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_cli.py b/tests/test_cli.py index 4d6eb56a..f533e497 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -1,3 +1,4 @@ +import os import pytest from click.testing import CliRunner @@ -601,6 +602,10 @@ def test_export_directory_template_album_2(): assert os.path.isfile(os.path.join(workdir, filepath)) +@pytest.mark.skipif( + "OSXPHOTOS_TEST_LOCALE" not in os.environ, + reason="Skip if running in Github actions", +) def test_export_directory_template_locale(): # test export using directory template in user locale non-US import os