Skip to content

Commit

Permalink
Minor fix, generator to list
Browse files Browse the repository at this point in the history
  • Loading branch information
titipata authored Apr 13, 2024
1 parent 23662d9 commit 793b41a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_medline_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ def test_parse_medline_xml():
expected_title = "Monitoring of bacteriological contamination and as"
expected_abstract = "Two hundred and sixty nine beef, 230 sheep and 165"
parsed_medline = pp.parse_medline_xml(os.path.join("data", "pubmed20n0014.xml.gz"))
parsed_medline = list(parsed_medline)
assert isinstance(parsed_medline, list)
assert len(parsed_medline) == 30000, "Expect to have 30000 records"
assert (
Expand Down

0 comments on commit 793b41a

Please sign in to comment.