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

@@ -138,16 +138,3 @@ def test_place_place_info_asdict():
assert isinstance(photo.place, osxphotos.placeinfo.PlaceInfo)
assert photo.place.asdict() == MAUI_DICT
# def test_place_str():
# # test __str__
# import osxphotos
# photosdb = osxphotos.PhotosDB(dbfile=PHOTOS_DB)
# photo = photosdb.photos(uuid=[UUID_DICT["place_dc"]])[0]
# assert (
# str(photo.place)
# == "PlaceInfo(name='2038 18th St NW', names='['2038 18th St NW', 'Adams Morgan', 'Washington', 'Washington', 'Washington', 'District of Columbia', 'United States']', country_code='US', ishome='False', address_str='2038 18th St NW, Washington, DC 20009, United States', address='PostalAddress(street='2038 18th St NW', sub_locality='Adams Morgan', city='Washington', sub_administrative_area=None, state='DC', postal_code='20009', country='United States', iso_country_code='US')')"
# )