Check that path exists in tests

This commit is contained in:
Rhet Turnbull
2020-01-04 09:08:33 -08:00
parent d5eaff02f2
commit 5099fd7715
2 changed files with 4 additions and 0 deletions

View File

@@ -334,6 +334,7 @@ def test_external_edit2():
def test_path_edited1():
# test a valid edited path
import os.path
import osxphotos
photosdb = osxphotos.PhotosDB(dbfile=PHOTOS_DB)
@@ -344,6 +345,7 @@ def test_path_edited1():
assert path.endswith(
"resources/renders/E/E9BC5C36-7CD1-40A1-A72B-8B8FAC227D51_1_201_a.jpeg"
)
assert os.path.exists(path)
def test_path_edited2():

View File

@@ -261,6 +261,7 @@ def test_external_edit2():
def test_path_edited1():
# test a valid edited path
import os.path
import osxphotos
photosdb = osxphotos.PhotosDB(dbfile=PHOTOS_DB)
@@ -269,6 +270,7 @@ def test_path_edited1():
p = photos[0]
path = p.path_edited
assert path.endswith("resources/media/version/00/00/fullsizeoutput_9.jpeg")
assert os.path.exists(path)
def test_path_edited2():