mirror of https://github.com/explosion/spaCy.git
Fix typo in test
This commit is contained in:
parent
8ac5f22253
commit
525f798841
|
@ -142,7 +142,7 @@ def test_disable_pipes_context_restore(nlp, name):
|
||||||
"""Test that a disabled component stays disabled after running the context manager."""
|
"""Test that a disabled component stays disabled after running the context manager."""
|
||||||
nlp.add_pipe("new_pipe", name=name)
|
nlp.add_pipe("new_pipe", name=name)
|
||||||
assert nlp.has_pipe(name)
|
assert nlp.has_pipe(name)
|
||||||
nlp.disable_pipes(name)
|
nlp.disable_pipe(name)
|
||||||
assert not nlp.has_pipe(name)
|
assert not nlp.has_pipe(name)
|
||||||
with nlp.select_pipes(disable=name):
|
with nlp.select_pipes(disable=name):
|
||||||
assert not nlp.has_pipe(name)
|
assert not nlp.has_pipe(name)
|
||||||
|
|
Loading…
Reference in New Issue