From 6e5ea8e013860d9bfeb83b2b7d051591e8fb76d5 Mon Sep 17 00:00:00 2001 From: Rhet Turnbull Date: Sun, 23 Aug 2020 08:37:12 -0700 Subject: [PATCH] Fixed touch tests to use correct timezone --- tests/test_cli.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/test_cli.py b/tests/test_cli.py index d745efd3..5e051b34 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -2604,10 +2604,14 @@ def test_export_directory_template_1_dry_run(): def test_export_touch_files(): """ test export with --touch-files """ import os + import time import osxphotos from osxphotos.__main__ import export + os.environ["TZ"] = "US/Pacific" + time.tzset() + runner = CliRunner() cwd = os.getcwd() # pylint: disable=not-context-manager @@ -2640,6 +2644,9 @@ def test_export_touch_files_update(): import osxphotos from osxphotos.__main__ import export + os.environ["TZ"] = "US/Pacific" + time.tzset() + runner = CliRunner() cwd = os.getcwd() # pylint: disable=not-context-manager @@ -2767,6 +2774,9 @@ def test_export_touch_files_exiftool_update(): import osxphotos from osxphotos.__main__ import export + os.environ["TZ"] = "US/Pacific" + time.tzset() + runner = CliRunner() cwd = os.getcwd() # pylint: disable=not-context-manager