mirror of https://github.com/explosion/spaCy.git
Fix code style in test [ci skip]
This commit is contained in:
parent
03dde511b4
commit
adc050cdc5
|
@ -81,9 +81,9 @@ def test_replace_last_pipe(nlp):
|
|||
def test_replace_pipe_config(nlp):
|
||||
nlp.add_pipe("entity_linker")
|
||||
nlp.add_pipe("sentencizer")
|
||||
assert nlp.get_pipe("entity_linker").cfg["incl_prior"] == True
|
||||
assert nlp.get_pipe("entity_linker").cfg["incl_prior"] is True
|
||||
nlp.replace_pipe("entity_linker", "entity_linker", config={"incl_prior": False})
|
||||
assert nlp.get_pipe("entity_linker").cfg["incl_prior"] == False
|
||||
assert nlp.get_pipe("entity_linker").cfg["incl_prior"] is False
|
||||
|
||||
|
||||
@pytest.mark.parametrize("old_name,new_name", [("old_pipe", "new_pipe")])
|
||||
|
|
Loading…
Reference in New Issue