Check that path exists in tests
This commit is contained in:
@@ -334,6 +334,7 @@ def test_external_edit2():
|
|||||||
|
|
||||||
def test_path_edited1():
|
def test_path_edited1():
|
||||||
# test a valid edited path
|
# test a valid edited path
|
||||||
|
import os.path
|
||||||
import osxphotos
|
import osxphotos
|
||||||
|
|
||||||
photosdb = osxphotos.PhotosDB(dbfile=PHOTOS_DB)
|
photosdb = osxphotos.PhotosDB(dbfile=PHOTOS_DB)
|
||||||
@@ -344,6 +345,7 @@ def test_path_edited1():
|
|||||||
assert path.endswith(
|
assert path.endswith(
|
||||||
"resources/renders/E/E9BC5C36-7CD1-40A1-A72B-8B8FAC227D51_1_201_a.jpeg"
|
"resources/renders/E/E9BC5C36-7CD1-40A1-A72B-8B8FAC227D51_1_201_a.jpeg"
|
||||||
)
|
)
|
||||||
|
assert os.path.exists(path)
|
||||||
|
|
||||||
|
|
||||||
def test_path_edited2():
|
def test_path_edited2():
|
||||||
|
|||||||
@@ -261,6 +261,7 @@ def test_external_edit2():
|
|||||||
|
|
||||||
def test_path_edited1():
|
def test_path_edited1():
|
||||||
# test a valid edited path
|
# test a valid edited path
|
||||||
|
import os.path
|
||||||
import osxphotos
|
import osxphotos
|
||||||
|
|
||||||
photosdb = osxphotos.PhotosDB(dbfile=PHOTOS_DB)
|
photosdb = osxphotos.PhotosDB(dbfile=PHOTOS_DB)
|
||||||
@@ -269,6 +270,7 @@ def test_path_edited1():
|
|||||||
p = photos[0]
|
p = photos[0]
|
||||||
path = p.path_edited
|
path = p.path_edited
|
||||||
assert path.endswith("resources/media/version/00/00/fullsizeoutput_9.jpeg")
|
assert path.endswith("resources/media/version/00/00/fullsizeoutput_9.jpeg")
|
||||||
|
assert os.path.exists(path)
|
||||||
|
|
||||||
|
|
||||||
def test_path_edited2():
|
def test_path_edited2():
|
||||||
|
|||||||
Reference in New Issue
Block a user