Updated README, added os & db version tests, updated test library for 10.13

This commit is contained in:
Rhet Turnbull
2019-07-27 21:45:37 -04:00
parent 32bd4cfb9d
commit a58ac149f3
28 changed files with 81 additions and 29 deletions

View File

@@ -38,6 +38,20 @@ def test_init():
assert isinstance(photosdb, osxphotos.PhotosDB)
def test_db_version():
import osxphotos
photosdb = osxphotos.PhotosDB(dbfile=PHOTOS_DB)
assert photosdb.get_db_version() in osxphotos._TESTED_DB_VERSIONS
def test_os_version():
import osxphotos
(_, major, _) = osxphotos._get_os_version()
assert major in osxphotos._TESTED_OS_VERSIONS
def test_persons():
import osxphotos
import collections