Fixed time zone for tests
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1117,9 +1117,14 @@ def test_photosinfo_repr():
|
|||||||
|
|
||||||
|
|
||||||
def test_from_to_date():
|
def test_from_to_date():
|
||||||
|
import os
|
||||||
|
import time
|
||||||
import osxphotos
|
import osxphotos
|
||||||
import datetime as dt
|
import datetime as dt
|
||||||
|
|
||||||
|
os.environ["TZ"] = "US/Pacific"
|
||||||
|
time.tzset()
|
||||||
|
|
||||||
photosdb = osxphotos.PhotosDB(PHOTOS_DB)
|
photosdb = osxphotos.PhotosDB(PHOTOS_DB)
|
||||||
|
|
||||||
photos = photosdb.photos(from_date=dt.datetime(2018, 10, 28))
|
photos = photosdb.photos(from_date=dt.datetime(2018, 10, 28))
|
||||||
|
|||||||
@@ -1119,6 +1119,11 @@ def test_photosinfo_repr():
|
|||||||
def test_from_to_date():
|
def test_from_to_date():
|
||||||
import osxphotos
|
import osxphotos
|
||||||
import datetime as dt
|
import datetime as dt
|
||||||
|
import os
|
||||||
|
import time
|
||||||
|
|
||||||
|
os.environ["TZ"] = "US/Pacific"
|
||||||
|
time.tzset()
|
||||||
|
|
||||||
photosdb = osxphotos.PhotosDB(PHOTOS_DB)
|
photosdb = osxphotos.PhotosDB(PHOTOS_DB)
|
||||||
|
|
||||||
|
|||||||
@@ -763,6 +763,11 @@ def test_photosinfo_repr():
|
|||||||
def test_from_to_date():
|
def test_from_to_date():
|
||||||
import osxphotos
|
import osxphotos
|
||||||
import datetime as dt
|
import datetime as dt
|
||||||
|
import os
|
||||||
|
import time
|
||||||
|
|
||||||
|
os.environ["TZ"] = "US/Pacific"
|
||||||
|
time.tzset()
|
||||||
|
|
||||||
photosdb = osxphotos.PhotosDB(PHOTOS_DB)
|
photosdb = osxphotos.PhotosDB(PHOTOS_DB)
|
||||||
|
|
||||||
|
|||||||
@@ -771,6 +771,11 @@ def test_photosinfo_repr():
|
|||||||
def test_from_to_date():
|
def test_from_to_date():
|
||||||
import osxphotos
|
import osxphotos
|
||||||
import datetime as dt
|
import datetime as dt
|
||||||
|
import os
|
||||||
|
import time
|
||||||
|
|
||||||
|
os.environ["TZ"] = "US/Pacific"
|
||||||
|
time.tzset()
|
||||||
|
|
||||||
photosdb = osxphotos.PhotosDB(PHOTOS_DB)
|
photosdb = osxphotos.PhotosDB(PHOTOS_DB)
|
||||||
|
|
||||||
|
|||||||
@@ -1028,6 +1028,11 @@ def test_photosinfo_repr():
|
|||||||
def test_from_to_date():
|
def test_from_to_date():
|
||||||
import osxphotos
|
import osxphotos
|
||||||
import datetime as dt
|
import datetime as dt
|
||||||
|
import os
|
||||||
|
import time
|
||||||
|
|
||||||
|
os.environ["TZ"] = "US/Pacific"
|
||||||
|
time.tzset()
|
||||||
|
|
||||||
photosdb = osxphotos.PhotosDB(PHOTOS_DB)
|
photosdb = osxphotos.PhotosDB(PHOTOS_DB)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user