From f2352eb701a3fc968b0a20ba2e143ccd995347c3 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Tue, 29 Sep 2020 17:00:40 +0200 Subject: [PATCH] Test with default value --- spacy/tests/pipeline/test_initialize.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/tests/pipeline/test_initialize.py b/spacy/tests/pipeline/test_initialize.py index b6c22ee09..c9b514770 100644 --- a/spacy/tests/pipeline/test_initialize.py +++ b/spacy/tests/pipeline/test_initialize.py @@ -60,10 +60,10 @@ def test_initialize_arguments(): assert errors[0]["type"] == "value_error.strictbool" init_cfg = { "tokenizer": {"custom": 1}, - "components": {name: {"custom1": "x", "custom2": True}}, + "components": {name: {"custom1": "x"}}, } nlp.config["initialize"].update(init_cfg) nlp.initialize(get_examples) assert nlp.tokenizer.from_initialize == 1 pipe = nlp.get_pipe(name) - assert pipe.from_initialize == ("x", True) + assert pipe.from_initialize == ("x", False)