Changed path() to return absolute path and fixed tests

This commit is contained in:
Rhet Turnbull
2019-11-23 14:48:38 -08:00
parent 243492df88
commit 83186a655d
7 changed files with 35 additions and 24 deletions

View File

@@ -125,9 +125,8 @@ def test_attributes():
assert p.name() == "I found one!"
assert p.albums() == ["Pumpkin Farm"]
assert p.persons() == ["Katie"]
assert (
p.path()
== "tests/Test-10.15.1.photoslibrary/originals/D/D79B8D77-BFFC-460B-9312-034F2877D35B.jpeg"
assert p.path().endswith(
"tests/Test-10.15.1.photoslibrary/originals/D/D79B8D77-BFFC-460B-9312-034F2877D35B.jpeg"
)
assert p.ismissing() == False