mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +03:00
b23cdaff4c
- tox: move {posargs} to the end, so that it can override previous entries, e.g. `-ra` when `-rw` was used. - pytest: add `-ra` to addopts: it is good to see a summary of skipped and failed tests at the end.
34 lines
632 B
INI
34 lines
632 B
INI
[bdist_wheel]
|
|
universal = 1
|
|
|
|
[metadata]
|
|
license_file = LICENSE.md
|
|
|
|
[tool:pytest]
|
|
addopts=--tb=short --strict -ra
|
|
testspath = tests
|
|
|
|
[flake8]
|
|
ignore = E501
|
|
banned-modules = json = use from rest_framework.utils import json!
|
|
|
|
[isort]
|
|
skip=.tox
|
|
atomic=true
|
|
multi_line_output=5
|
|
known_standard_library=types
|
|
known_third_party=pytest,_pytest,django
|
|
known_first_party=rest_framework
|
|
|
|
[coverage:run]
|
|
# NOTE: source is ignored with pytest-cov (but uses the same).
|
|
source = .
|
|
include = rest_framework/*,tests/*
|
|
branch = 1
|
|
|
|
[coverage:report]
|
|
include = rest_framework/*,tests/*
|
|
exclude_lines =
|
|
pragma: no cover
|
|
raise NotImplementedError
|