Skip to content

Commit

Permalink
Fix test_obo.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tanghaibao committed Apr 12, 2024
1 parent ad09808 commit f17a625
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/formats/test_obo.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ def test_oboreader():
for i, rec in enumerate(sorted(set(go.values()), key=lambda x: x.item_id))
if i < 3
]
r4 = go["GO:0000010"]
assert r1.item_id == "GO:0000001"
assert r1.name == "mitochondrion inheritance"
assert r2.item_id == "GO:0000002"
assert r2.namespace == "biological_process"
assert r3.item_id == "GO:0000003"
assert tuple(sorted(r3.alt_ids)) == ("GO:0019952", "GO:0050876")
assert r3.item_id == "GO:0000006"
assert tuple(sorted(r4.alt_ids)) == ("GO:0036422",)

if os.path.exists(obo_file):
os.remove(obo_file)

0 comments on commit f17a625

Please sign in to comment.