Fixed time zone for tests

This commit is contained in:
Rhet Turnbull 2021-01-11 21:42:03 -08:00
parent 039118c1aa
commit 165f9b08f5
6 changed files with 26 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -1117,9 +1117,14 @@ def test_photosinfo_repr():
def test_from_to_date():
import os
import time
import osxphotos
import datetime as dt
os.environ["TZ"] = "US/Pacific"
time.tzset()
photosdb = osxphotos.PhotosDB(PHOTOS_DB)
photos = photosdb.photos(from_date=dt.datetime(2018, 10, 28))

View File

@ -1119,6 +1119,11 @@ def test_photosinfo_repr():
def test_from_to_date():
import osxphotos
import datetime as dt
import os
import time
os.environ["TZ"] = "US/Pacific"
time.tzset()
photosdb = osxphotos.PhotosDB(PHOTOS_DB)

View File

@ -763,6 +763,11 @@ def test_photosinfo_repr():
def test_from_to_date():
import osxphotos
import datetime as dt
import os
import time
os.environ["TZ"] = "US/Pacific"
time.tzset()
photosdb = osxphotos.PhotosDB(PHOTOS_DB)

View File

@ -771,6 +771,11 @@ def test_photosinfo_repr():
def test_from_to_date():
import osxphotos
import datetime as dt
import os
import time
os.environ["TZ"] = "US/Pacific"
time.tzset()
photosdb = osxphotos.PhotosDB(PHOTOS_DB)

View File

@ -1028,6 +1028,11 @@ def test_photosinfo_repr():
def test_from_to_date():
import osxphotos
import datetime as dt
import os
import time
os.environ["TZ"] = "US/Pacific"
time.tzset()
photosdb = osxphotos.PhotosDB(PHOTOS_DB)