Skip to content

Commit

Permalink
Add test for IDO parents
Browse files Browse the repository at this point in the history
  • Loading branch information
bgyori committed Jul 8, 2021
1 parent f2a2963 commit a5fbf89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion indra/tests/make_mock_ontology.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
'CHEBI:CHEBI:136692', 'EGID:1022', 'HGNC:1778',
'CHEMBL:CHEMBL296468', 'UP:P41180', 'MESH:D000077191',
'MESH:C475455', 'MESH:D015032', 'CHEBI:CHEBI:27363', 'CAS:7440-66-6',
'EGID:673', 'EGID:5594', 'EGID:5595'
'EGID:673', 'EGID:5594', 'EGID:5595', 'IDO:0000514'
}

always_include_ns = {'FPLX', 'INDRA_ACTIVITIES', 'INDRA_MODS'}
Expand Down
5 changes: 5 additions & 0 deletions indra/tests/test_ontology.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,3 +331,8 @@ def test_standardize_hgnc_fplx_mesh_bug():
assert refs['MESH'] == 'D044169'
assert refs['HGNC_GROUP'] == '279'
assert 'HGNC' not in refs


def test_ido_parents():
parents = bio_ontology.get_parents('IDO', '0000514')
assert ('IDO', '0000509') in parents

0 comments on commit a5fbf89

Please sign in to comment.