ExactConceptParser can now recognize concepts by their names
This commit is contained in:
@@ -170,14 +170,14 @@ def test_i_can_str_concept():
|
||||
assert core.utils.str_concept((None, "id")) == "c:|id:"
|
||||
assert core.utils.str_concept(("key", None)) == "c:key:"
|
||||
assert core.utils.str_concept((None, None)) == ""
|
||||
assert core.utils.str_concept(("key", "id"), skip_key=True) == "c:|id:"
|
||||
assert core.utils.str_concept(("key", "id"), drop_name=True) == "c:|id:"
|
||||
|
||||
concept = Concept("foo").init_key()
|
||||
assert core.utils.str_concept(concept) == "c:foo:"
|
||||
|
||||
concept.metadata.id = "1001"
|
||||
assert core.utils.str_concept(concept) == "c:foo|1001:"
|
||||
assert core.utils.str_concept(concept, skip_key=True) == "c:|1001:"
|
||||
assert core.utils.str_concept(concept, drop_name=True) == "c:|1001:"
|
||||
|
||||
|
||||
@pytest.mark.parametrize("text, expected", [
|
||||
|
||||
Reference in New Issue
Block a user