From ece72e4745265ab71f0b6da6710accc2d8980055 Mon Sep 17 00:00:00 2001 From: Dana Powers Date: Sun, 3 Jan 2016 18:00:45 -0800 Subject: [PATCH] Move pytest options to [pytest] tox section --- tox.ini | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 8860933..d1168f1 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,11 @@ [tox] envlist = py{26,27,py,33,34,35}, docs +[pytest] +testpaths = kafka test +doctest_optionflags = modules +addopts = --durations=10 + [testenv] deps = pytest @@ -14,7 +19,7 @@ deps = py{26,27}: six py26: unittest2 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 = PROJECT_ROOT = {toxinidir} passenv = KAFKA_VERSION