Fix typo in test

This commit is contained in:
Ines Montani 2020-10-09 18:00:21 +02:00
parent 8ac5f22253
commit 525f798841
1 changed files with 1 additions and 1 deletions

View File

@ -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)