update tests from master to follow v4 principles (2)

This commit is contained in:
svlandeg 2023-01-11 19:04:06 +01:00
parent 6ff5eb256c
commit fc2723925b

View File

@ -353,7 +353,6 @@ def test_entity_ruler_overlapping_spans(nlp):
assert doc.ents[0].label_ == "FOOBAR"
@pytest.mark.parametrize()
def test_entity_ruler_fuzzy_pipe(nlp):
ruler = nlp.add_pipe("entity_ruler")
patterns = [{"label": "HELLO", "pattern": [{"LOWER": {"FUZZY": "hello"}}]}]
@ -363,7 +362,6 @@ def test_entity_ruler_fuzzy_pipe(nlp):
assert doc.ents[0].label_ == "HELLO"
@pytest.mark.parametrize()
def test_entity_ruler_fuzzy(nlp):
ruler = nlp.add_pipe("entity_ruler")
patterns = [{"label": "HELLO", "pattern": [{"LOWER": {"FUZZY": "hello"}}]}]
@ -373,7 +371,6 @@ def test_entity_ruler_fuzzy(nlp):
assert doc.ents[0].label_ == "HELLO"
@pytest.mark.parametrize()
def test_entity_ruler_fuzzy_disabled(nlp):
@registry.misc("test_fuzzy_compare_disabled")
def make_test_fuzzy_compare_disabled():