Skip to content

Commit

Permalink
Minor string fix in test
Browse files Browse the repository at this point in the history
  • Loading branch information
titipata authored Apr 13, 2024
1 parent 3905d6b commit 23662d9
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions tests/test_medline_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,12 @@ def test_parse_medline_mesh_terms():
Test parsing MeSH headings from MEDLINE XML
"""
headings = parsed_medline[0]["mesh_terms"]
expected = """
D006801:Humans
D017116:Low Back Pain
D003937:Diagnosis, Differential
D001416:Back Pain
D000894:Anti-Inflammatory Agents, Non-Steroidal
D015928:Cognitive Behavioral Therapy
""".strip().replace("\n", "; ")
expected = """D006801:Humans
D017116:Low Back Pain
D003937:Diagnosis, Differential
D001416:Back Pain
D000894:Anti-Inflammatory Agents, Non-Steroidal
D015928:Cognitive Behavioral Therapy""".strip().replace("\n", "; ")
print(headings)
assert headings == expected

Expand Down

0 comments on commit 23662d9

Please sign in to comment.