1
0
Fork 0

use mocks for isni API calls

- fixes a couple of tests making author ISNI calls
- notes a future TODO to remove some possibly useless code
This commit is contained in:
Hugh Rundle 2023-01-26 16:22:50 +11:00
parent 578de27515
commit aa6eaccfbb
2 changed files with 42 additions and 0 deletions

View file

@ -85,6 +85,8 @@ def find_authors_by_name(name_string, description=False):
# build list of possible authors
possible_authors = []
for element in root.iter("responseRecord"):
# TODO: we don't seem to do anything with the personal_name variable - is this code block needed?
personal_name = element.find(".//forename/..")
if not personal_name:
continue