more openlibrary connector tests

This commit is contained in:
Mouse Reeve
2020-05-10 14:12:03 -07:00
parent 5e78de1340
commit d5f46a1c6f
2 changed files with 15 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class Connector(AbstractConnector):
def is_work_data(self, data):
return not re.match(r'^OL\d+M$', data['key'])
return bool(re.match(r'^[\/\w]+OL\d+W$', data['key']))
def get_edition_from_work_data(self, data):