mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-14 02:02:20 +03:00
Test with the non-loaded versions of the English and German pipelines.
This commit is contained in:
parent
0e2bedc373
commit
1318d0bc65
|
@ -1,16 +1,17 @@
|
||||||
import pytest
|
import pytest
|
||||||
import os
|
import os
|
||||||
|
|
||||||
import spacy
|
from ..en import English
|
||||||
|
from ..de import German
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="session")
|
@pytest.fixture(scope="session")
|
||||||
def EN():
|
def EN():
|
||||||
return spacy.load("en")
|
return English(path=None)
|
||||||
|
|
||||||
@pytest.fixture(scope="session")
|
@pytest.fixture(scope="session")
|
||||||
def DE():
|
def DE():
|
||||||
return spacy.load("de")
|
return German(path=None)
|
||||||
|
|
||||||
|
|
||||||
def pytest_addoption(parser):
|
def pytest_addoption(parser):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user