Fixed from_date and to_date to be timezone aware, closes #193

This commit is contained in:
Rhet Turnbull
2020-08-08 21:01:53 -07:00
parent 2628c1f2d2
commit fc416ea0b7
14 changed files with 199 additions and 96 deletions

View File

@@ -1,4 +1,3 @@
import pytest
from osxphotos._constants import _UNKNOWN_PERSON
@@ -82,13 +81,6 @@ def test_db_len():
assert len(photosdb) == PHOTOS_DB_LEN
def test_os_version():
import osxphotos
(_, major, _) = osxphotos.utils._get_os_version()
assert major in osxphotos._constants._TESTED_OS_VERSIONS
def test_persons():
import osxphotos
import collections
@@ -272,6 +264,7 @@ def test_not_hidden():
def test_location_1():
# test photo with lat/lon info
import osxphotos
import pytest
photosdb = osxphotos.PhotosDB(dbfile=PHOTOS_DB)
photos = photosdb.photos(uuid=["3Jn73XpSQQCluzRBMWRsMA"])