From 8ebb7faf29d4553fa4b97537a2bb4f9f4ac9da9c Mon Sep 17 00:00:00 2001 From: ErnestaP Date: Thu, 7 Dec 2023 11:29:05 +0100 Subject: [PATCH] format --- tests/test_aps.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_aps.py b/tests/test_aps.py index 4e460db..833925e 100644 --- a/tests/test_aps.py +++ b/tests/test_aps.py @@ -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 = (