sosia-dev / sosia

Sosia: Automatic author matching in Scopus on-line
https://sosia.readthedocs.io/
MIT License
11 stars 3 forks source link

Fix tests #33

Closed nils-herrmann closed 3 months ago

nils-herrmann commented 5 months ago

Tests should be up to date to ensure proper development. Following a short summary:

Overview: 11 failed, 49 passed, 1 warning

FAILED sosia/classes/tests/test_Original.py::test_find_matches - AssertionError: Lists differ: [53164702100] != [53164702100, 55071051800, 55804519400]
FAILED sosia/classes/tests/test_Original.py::test_find_matches_stacked - AssertionError: Lists differ: [53164702100] != [53164702100, 55071051800, 55804519400]
FAILED sosia/classes/tests/test_Original.py::test_find_matches_stacked_affiliations - AssertionError: Lists differ: [53164702100] != [55071051800, 55804519400]
FAILED sosia/classes/tests/test_Original.py::test_inform_matches - AssertionError: 1 != 3
FAILED sosia/classes/tests/test_Scientist.py::test_affiliation_country - AssertionError: 'United States' != 'Switzerland'
FAILED sosia/classes/tests/test_Scientist.py::test_affiliation_id - AssertionError: '60015623' != '60028186'
FAILED sosia/classes/tests/test_Scientist.py::test_affiliation_name - AssertionError: 'École Polytechnique Fédérale de Lausanne' != 'Ecole Polytechnique Fédérale de Lausanne'
FAILED sosia/classes/tests/test_Scientist.py::test_affiliation_type - AssertionError: 'comp' != 'univ'
FAILED sosia/processing/tests/test_querying.py::test_query_sources_by_year - AssertionError: False is not true
FAILED sosia/processing/tests/test_querying.py::test_query_sources_by_year_stacked - AssertionError: False is not true
FAILED sosia/processing/tests/test_querying.py::test_stacked_query - AssertionError: 798 != 797

Coverage: 89%