mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-10 19:57:17 +03:00
Auto-format code with black (#10795)
Co-authored-by: explosion-bot <explosion-bot@users.noreply.github.com>
This commit is contained in:
parent
fd36469900
commit
99aeaf9bd3
|
@ -143,7 +143,9 @@ def test_pipe_class_component_config():
|
|||
with pytest.raises(ConfigValidationError): # invalid config
|
||||
nlp.add_pipe(name, config={"value1": "10", "value2": "hello"})
|
||||
with pytest.warns(UserWarning):
|
||||
nlp.add_pipe(name, config={"value1": 10, "value2": "hello", "name": "wrong_name"})
|
||||
nlp.add_pipe(
|
||||
name, config={"value1": 10, "value2": "hello", "name": "wrong_name"}
|
||||
)
|
||||
pipe = nlp.get_pipe(name)
|
||||
assert isinstance(pipe.nlp, Language)
|
||||
assert pipe.value1 == 10
|
||||
|
|
Loading…
Reference in New Issue
Block a user