Merge pull request #9506 from explosion/tests/conftest-options

This commit is contained in:
Ines Montani 2021-10-20 10:33:43 +02:00 committed by GitHub
commit 5facdb031c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -3,8 +3,13 @@ from spacy.util import get_lang_class
def pytest_addoption(parser):
try:
parser.addoption("--slow", action="store_true", help="include slow tests")
parser.addoption("--issue", action="store", help="test specific issues")
# Options are already added, e.g. if conftest is copied in a build pipeline
# and runs twice
except ValueError:
pass
def pytest_runtest_setup(item):