Skip to content

Commit

Permalink
Added test that ensures '/ontology-terms/' @id prefix is recognized
Browse files Browse the repository at this point in the history
  • Loading branch information
sbreiff committed Oct 30, 2018
1 parent 0c43b8b commit 90ee7fe
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_import_data.py
Expand Up @@ -791,6 +791,14 @@ def test_validate_item_not_in_alias_dict_alias_indb_long_name(mocker, connection
assert not msg


def test_validate_item_not_in_alias_dict_hyphen(mocker, connection_mock):
item = '/ontology-terms/EFO%3A0006274'
with mocker.patch('dcicutils.ff_utils.get_metadata',
return_value={'@type': ['OntologyTerm']}):
msg = imp.validate_item([item], 'Individual', {}, connection_mock)
assert " \'/ontology-terms/EFO%3A0006274\'" in msg


def test_validate_item_not_in_alias_dict_alias_not_indb(mocker, connection_mock):
item = 'test:alias1'
with mocker.patch('dcicutils.ff_utils.get_metadata',
Expand Down

0 comments on commit 90ee7fe

Please sign in to comment.