Merge pull request #5292 from azzamsa/tox-patch

refactor: use `pytest` command as the recommended entry point
This commit is contained in:
Andrey Rahmatullin 2021-10-25 11:34:59 +05:00 committed by GitHub
commit 3225de7257
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ passenv =
#allow tox virtualenv to upgrade pip/wheel/setuptools
download = true
commands =
py.test --cov=scrapy --cov-report=xml --cov-report= {posargs:--durations=10 docs scrapy tests}
pytest --cov=scrapy --cov-report=xml --cov-report= {posargs:--durations=10 docs scrapy tests}
install_command =
pip install -U -ctests/upper-constraints.txt {opts} {packages}
@ -60,7 +60,7 @@ deps =
pytest-flake8
flake8==3.9.2 # https://github.com/tholo/pytest-flake8/issues/81
commands =
py.test --flake8 {posargs:docs scrapy tests}
pytest --flake8 {posargs:docs scrapy tests}
[testenv:pylint]
basepython = python3
@ -142,7 +142,7 @@ setenv =
[testenv:pypy3]
basepython = pypy3
commands =
py.test {posargs:--durations=10 docs scrapy tests}
pytest {posargs:--durations=10 docs scrapy tests}
[testenv:pypy3-pinned]
basepython = {[testenv:pypy3]basepython}