Skip to content

Commit

Permalink
remove non-functioning test
Browse files Browse the repository at this point in the history
  • Loading branch information
imLew committed Nov 7, 2019
1 parent 407e43b commit 6cd44c0
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tests/nlu/base/test_synonyms.py
Expand Up @@ -16,12 +16,3 @@ def test_entity_synonyms():
assert entities[1]["value"] == "chinese"
assert entities[2]["value"] == "china"


def test_loading_no_warning():
syn = EntitySynonymMapper(synonyms=None)
syn.persist("test", "test")
meta = Metadata({"test": 1}, "test")
with pytest.warns(UserWarning) as record:
syn.load(meta.for_component(0), "test", meta)
assert len(record) == 1
assert "Failed to load synonyms file from" in record[0].message.args[0]

0 comments on commit 6cd44c0

Please sign in to comment.