Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnestaP committed Dec 7, 2023
1 parent cb77ef2 commit f8c271b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/test_aps.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,8 @@ def test_authors(results):
}

for expected, record in zip(expected_results, results):
assert 'authors' in record
print(results)
assert len(record['authors']) == len(expected['author_full_names'])

record_full_names = [author['full_name']
for author in record['authors']]
# assert that we have the same list of authors
assert set(expected['author_full_names']) == set(record_full_names)
for author in record['authors']:
for affiliation in author['affiliations']:
assert affiliation['value'] == expected['affiliation']
Expand Down

0 comments on commit f8c271b

Please sign in to comment.