mirror of
https://github.com/explosion/spaCy.git
synced 2025-04-21 09:31:59 +03:00
black formatting
This commit is contained in:
parent
bf98eb240c
commit
d14aad0cdf
|
@ -193,9 +193,15 @@ def test_add_pipe_last(nlp, name1, name2):
|
|||
def test_add_pipe_false(nlp, name1, name2):
|
||||
Language.component("new_pipe2", func=lambda doc: doc)
|
||||
nlp.add_pipe("new_pipe2", name=name2)
|
||||
with pytest.raises(ValueError, match="The 'last' parameter should be 'None' or 'True', but found 'False'"):
|
||||
with pytest.raises(
|
||||
ValueError,
|
||||
match="The 'last' parameter should be 'None' or 'True', but found 'False'",
|
||||
):
|
||||
nlp.add_pipe("new_pipe", name=name1, last=False)
|
||||
with pytest.raises(ValueError, match="The 'first' parameter should be 'None' or 'True', but found 'False'"):
|
||||
with pytest.raises(
|
||||
ValueError,
|
||||
match="The 'first' parameter should be 'None' or 'True', but found 'False'",
|
||||
):
|
||||
nlp.add_pipe("new_pipe", name=name1, first=False)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user