Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnestaP committed Dec 7, 2023
1 parent 1a87575 commit 8ebb7fa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_aps.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,13 @@ def test_authors(results):
'raw_name': u'James P. Sethna',
'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 '')
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



def test_copyrights(results):
"""Test extracting copyright."""
expected_results = (
Expand Down

0 comments on commit 8ebb7fa

Please sign in to comment.