mirror of https://github.com/explosion/spaCy.git
* Allow tests to read model dir from SPACY_DATA environment variable
This commit is contained in:
parent
55f1042443
commit
f95da0bd52
|
@ -1,7 +1,9 @@
|
||||||
import pytest
|
import pytest
|
||||||
from spacy.en import English
|
from spacy.en import English, LOCAL_DATA_DIR
|
||||||
|
import os
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="session")
|
@pytest.fixture(scope="session")
|
||||||
def EN():
|
def EN():
|
||||||
return English()
|
data_dir = os.environ.get('SPACY_DATA', LOCAL_DATA_DIR)
|
||||||
|
return English(data_dir=data_dir)
|
||||||
|
|
Loading…
Reference in New Issue