Move pytest options to [pytest] tox section

This commit is contained in:
Dana Powers
2016-01-03 18:00:45 -08:00
parent 95e7a65a8e
commit ece72e4745

View File

@@ -1,6 +1,11 @@
[tox] [tox]
envlist = py{26,27,py,33,34,35}, docs envlist = py{26,27,py,33,34,35}, docs
[pytest]
testpaths = kafka test
doctest_optionflags = modules
addopts = --durations=10
[testenv] [testenv]
deps = deps =
pytest pytest
@@ -14,7 +19,7 @@ deps =
py{26,27}: six py{26,27}: six
py26: unittest2 py26: unittest2
commands = commands =
py.test {posargs:--pylint --pylint-rcfile=pylint.rc --pylint-error-types=EF --durations=10 --cov=kafka --doctest-modules kafka test} py.test {posargs:--pylint --pylint-rcfile=pylint.rc --pylint-error-types=EF --cov=kafka}
setenv = setenv =
PROJECT_ROOT = {toxinidir} PROJECT_ROOT = {toxinidir}
passenv = KAFKA_VERSION passenv = KAFKA_VERSION