Skip to content

Commit

Permalink
springer: fixes test for abstracts
Browse files Browse the repository at this point in the history
Signed-off-by: pamfilos <[email protected]>
  • Loading branch information
pamfilos committed Dec 5, 2024
1 parent 3911d52 commit 109223c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/units/springer/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,10 @@ def test_abstract(parsed_articles):
None
)
for abstract, article in zip(abstracts, parsed_articles):
assert "abstract" in article
assert article["abstract"] == abstract
if abstract is None:
assert "abstract" not in article
else:
assert article["abstract"] == abstract


@fixture
Expand Down

0 comments on commit 109223c

Please sign in to comment.