Fixed touch tests to use correct timezone

This commit is contained in:
Rhet Turnbull
2020-08-23 08:37:12 -07:00
parent 9f64262757
commit 6e5ea8e013

View File

@@ -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