Move pytest options to [pytest] tox section
This commit is contained in:
7
tox.ini
7
tox.ini
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user