mirror of
https://github.com/encode/django-rest-framework.git
synced 2026-02-17 20:50:35 +03:00
Use pytest directly in tox and relax version pins
This commit is contained in:
parent
a13a43dd12
commit
7401f96cea
|
|
@ -49,8 +49,8 @@ test = [
|
|||
"importlib-metadata<5.0",
|
||||
|
||||
# Pytest for running the tests.
|
||||
"pytest>=7.0.1,<10",
|
||||
"pytest-cov>=4.0.0,<8.0",
|
||||
"pytest==9.*",
|
||||
"pytest-cov==7.*",
|
||||
"pytest-django>=4.5.2,<5",
|
||||
|
||||
# Remove when dropping support for Django<5.0
|
||||
|
|
|
|||
6
tox.ini
6
tox.ini
|
|
@ -10,11 +10,7 @@ envlist =
|
|||
docs
|
||||
|
||||
[testenv]
|
||||
commands =
|
||||
python -W error::DeprecationWarning \
|
||||
-W "ignore:'cgi' is deprecated:DeprecationWarning" \
|
||||
-W error::PendingDeprecationWarning \
|
||||
runtests.py --coverage {posargs}
|
||||
commands = pytest --cov --cov-report xml {posargs}
|
||||
envdir = {toxworkdir}/venvs/{envname}
|
||||
setenv =
|
||||
PYTHONDONTWRITEBYTECODE=1
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user