Move pytest config to setup.cfg (#5979)

Also adds `testspath` to improve test collection performance.
This commit is contained in:
Daniel Hahler 2018-05-08 14:28:16 +02:00 committed by Tom Christie
parent fca39f9dbb
commit 4527a753cd
2 changed files with 4 additions and 3 deletions

View File

@ -4,6 +4,10 @@ universal = 1
[metadata]
license_file = LICENSE.md
[pytest]
addopts=--tb=short --strict
testspath = tests
[flake8]
ignore = E501
banned-modules = json = use from rest_framework.utils import json!

View File

@ -1,6 +1,3 @@
[pytest]
addopts=--tb=short --strict
[tox]
envlist =
{py27,py34,py35}-django110,