Python formatting

This commit is contained in:
Mouse Reeve 2021-04-29 09:56:35 -07:00
parent f4800307b4
commit 8d38d1c9d1
2 changed files with 5 additions and 4 deletions

View file

@ -89,7 +89,7 @@ class Connector(AbstractConnector):
def parse_isbn_search_data(self, data):
"""got some daaaata"""
results = data.get('entities')
results = data.get("entities")
if not results:
return []
return list(results.values())
@ -104,7 +104,7 @@ class Connector(AbstractConnector):
key=self.get_remote_id(search_result.get("uri")),
view_link="{:s}{:s}".format(self.base_url, search_result.get("uri")),
cover=self.get_cover_url(search_result.get("image")),
connector=self
connector=self,
)
def is_work_data(self, data):

View file

@ -149,7 +149,8 @@ class Inventaire(TestCase):
self.assertEqual(formatted.title, "L'homme aux cercles bleus")
self.assertEqual(
formatted.key, "https://inventaire.io?action=by-uris&uris=isbn:9782290349229"
formatted.key,
"https://inventaire.io?action=by-uris&uris=isbn:9782290349229",
)
self.assertEqual(
formatted.cover,