Skip to content

Commit

Permalink
Fix tests for bioc 2.0 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
creisle committed Mar 8, 2023
1 parent f6239ec commit 19cce75
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_pmcxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,9 @@ def test_sibling_intext_citations(table_article):

for doc in docs2bioc(file, 'pmcxml', trim_sentences=False, mark_citations=True):
all_passages.extend(doc.passages)
all_annotations.extend(bioc.annotations(doc))
all_annotations.extend([a.annotation for a in bioc.annotations(doc)])

for chunk in all_passages:
print(chunk.text)
if 'PyMOL' in chunk.text:
break
assert any(
Expand Down

0 comments on commit 19cce75

Please sign in to comment.