Fixed touch tests to use correct timezone
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user