summaryrefslogtreecommitdiffstats
path: root/newton/tox.ini
diff options
context:
space:
mode:
authorHuang Haibin <haibin.huang@intel.com>2018-03-08 22:05:26 +0800
committerHuang Haibin <haibin.huang@intel.com>2018-03-10 00:38:17 +0800
commit51fde27c2a12f525e94ecd3a83238a46215d9392 (patch)
tree4b9b72d4048209d410c0f9bc8a25a9561f3fcfa0 /newton/tox.ini
parentc701ab185721e50cca3d432220361aaa723358cc (diff)
newton use share library
Change-Id: I0ed8ced042862edf8afa87fec3b457d019e811b4 Issue-ID: MULTICLOUD-138 Signed-off-by: Huang Haibin <haibin.huang@intel.com>
Diffstat (limited to 'newton/tox.ini')
-rw-r--r--newton/tox.ini19
1 files changed, 7 insertions, 12 deletions
diff --git a/newton/tox.ini b/newton/tox.ini
index 919ad18f..70ca1ae5 100644
--- a/newton/tox.ini
+++ b/newton/tox.ini
@@ -6,15 +6,10 @@ skipsdist = true
downloadcache = ~/cache/pip
[testenv]
-passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
-deps =
- -r{toxinidir}/requirements.txt
- -r{toxinidir}/test-requirements.txt
-commands =
- coverage run --branch manage.py test
-
-[testenv:cover]
-commands =
- coverage html --omit=".tox/*,*tests*,*__init__.py"
- coverage report --omit=".tox/*,*tests*,*__init__.py" --fail-under=30
- coverage xml -i
+setenv =
+ PYTHONPATH = {toxinidir}/../share
+deps = -r{toxinidir}/requirements.txt
+commands =
+ coverage run --branch manage.py test
+ coverage report --omit=".tox/*,*tests*,*__init__.py" --fail-under=30
+ coverage xml -i