From b62739fbfe18c885a0172c8371b89a4010b086fb Mon Sep 17 00:00:00 2001 From: ines Date: Tue, 28 Nov 2017 20:27:54 +0100 Subject: [PATCH] Add regression test for #1654 --- spacy/tests/regression/test_issue1654.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 spacy/tests/regression/test_issue1654.py diff --git a/spacy/tests/regression/test_issue1654.py b/spacy/tests/regression/test_issue1654.py new file mode 100644 index 000000000..448bf80a1 --- /dev/null +++ b/spacy/tests/regression/test_issue1654.py @@ -0,0 +1,17 @@ +# coding: utf8 +from __future__ import unicode_literals + +import pytest + +from ...language import Language +from ...vocab import Vocab + + +@pytest.mark.xfail +def test_issue1654(): + nlp = Language(Vocab()) + assert not nlp.pipeline + nlp.add_pipe(lambda doc: doc, name='1') + nlp.add_pipe(lambda doc: doc, name='2', after='1') + nlp.add_pipe(lambda doc: doc, name='3', after='2') + assert nlp.pipe_names == ['1', '2', '3']