Refactor ruff (#1155)

* Refactored to make ruff happy

* Refactored tests, fixed bug in Mojave path_raw
This commit is contained in:
Rhet Turnbull
2023-08-12 20:24:46 -06:00
committed by GitHub
parent e53d223f2d
commit 8be71243d5
35 changed files with 192 additions and 204 deletions

View File

@@ -102,7 +102,7 @@ def test_albums_1(photosdb):
@pytest.mark.parametrize("album_name,album_uuids", ALBUM_PHOTO_DATA)
def test_photoinfo_albums(photosdb, album_name, album_uuids):
def test_photoinfo_albums_1(photosdb, album_name, album_uuids):
"""Test PhotoInfo.albums"""
photos = photosdb.photos(uuid=album_uuids)
@@ -111,7 +111,7 @@ def test_photoinfo_albums(photosdb, album_name, album_uuids):
@pytest.mark.parametrize("uuid,expected_albums", PHOTO_ALBUM_DATA.items())
def test_photoinfo_albums(photosdb, uuid, expected_albums):
def test_photoinfo_albums_2(photosdb, uuid, expected_albums):
"""Test PhotoInfo.albums"""
photo = photosdb.get_photo(uuid)