Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnestaP committed Dec 7, 2023
1 parent f8af83e commit 1a87575
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/test_aps.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,9 @@ def test_authors(results):
'surname': u'Sethna'}]

sorted_expected_results = sorted(expected_results, key=lambda x: x['affiliations'][0]['value'] if x['affiliations'] else '')
sorted_results = sorted(results[0]['authors'], key=lambda x: x['affiliations'][0]['value'] if x['affiliations'] else '')
assert sorted_expected_results == sorted_results

sorted_results = sorted(expected_results, key=lambda x: x['affiliations'][0]['value'] if x['affiliations'] else '')
for expected, record in zip(sorted_expected_results, sorted_results):
for author in record['authors']:
assert author == expected


def test_copyrights(results):
Expand Down

0 comments on commit 1a87575

Please sign in to comment.