From f17a625ffbc8bb077553728b16a529ea14b3655e Mon Sep 17 00:00:00 2001 From: Haibao Tang Date: Thu, 11 Apr 2024 18:48:58 -0700 Subject: [PATCH] Fix test_obo.py --- tests/formats/test_obo.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/formats/test_obo.py b/tests/formats/test_obo.py index 142797b1..ae6ea3ce 100644 --- a/tests/formats/test_obo.py +++ b/tests/formats/test_obo.py @@ -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)