From 4c7387f811c01bd74b5ae6e0d0cca4bc98d298e8 Mon Sep 17 00:00:00 2001 From: "zhifeng.jiang" Date: Sun, 3 Jul 2016 23:04:40 +0800 Subject: Add some UT test cases and fix pep8 errors for cli and env_setup. JIRA:QTIP-89 Change-Id: I4a46898071001f679f1a032a560d605dffc8eb9f Signed-off-by: zhifeng.jiang --- tox.ini | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 3e5e1ef9..d955416c 100644 --- a/tox.ini +++ b/tox.ini @@ -8,24 +8,25 @@ envlist = py27 skipsdist = True [testenv] -changedir=tests -deps = +usedevelop = True +install_command = pip install -U {opts} {packages} +deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands= py.test \ - --basetemp={envtmpdir} \ # py.test tempdir setting - {posargs} # substitute with tox' positional arguments + --basetemp={envtmpdir} \ + {posargs} tests [testenv:pep8] deps = flake8 -commands = flake8 {toxinidir} +commands = flake8 {toxinidir} [flake8] # H803 skipped on purpose per list discussion. # E123, E125 skipped as they are invalid PEP-8. show-source = True -ignore = E123,E125,H803 +ignore = E123,E125,H803,E501 builtins = _ exclude=.venv,.git,.tox,dist,doc,build -- cgit 1.2.3-korg