mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-13 02:36:32 +03:00
Add regression test for #1654
This commit is contained in:
parent
2e50dbb9d7
commit
b62739fbfe
17
spacy/tests/regression/test_issue1654.py
Normal file
17
spacy/tests/regression/test_issue1654.py
Normal file
|
@ -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']
|
Loading…
Reference in New Issue
Block a user