Fix sonar issues
[optf/osdf.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index 1606b9b..6dc85e0 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -9,11 +9,13 @@ basepython=python3
 setenv   =
     OSDF_CONFIG_FILE={toxinidir}/test/config/osdf_config.yaml
 commands =
+    /bin/cp config/slicing_config.yaml test/config/
     /bin/bash test/functest/scripts/start-simulators.sh
     coverage run --module pytest --junitxml xunit-results.xml
     coverage xml --omit=".tox/py3/*","test/*"
     coverage report -m --omit=".tox/py3/*","test/*"
     /bin/bash test/functest/scripts/stop-simulators.sh
+    /bin/rm test/config/slicing_config.yaml
     # TODO: need to update the above "omit" when we package osdf as pip-installable
 deps = -r{toxinidir}/requirements.txt
     -r{toxinidir}/test/test-requirements.txt
@@ -28,9 +30,10 @@ whitelist_externals=bash
 commands = bash -c "pylint --reports=y osdf apps runtime| tee pylint.out"
 
 [testenv:py3]
-basepython=python3.6
+basepython=python3
 
 [testenv:flake8diff]
+basepython=python3
 whitelist_externals=bash
 deps = hacking>=2.0.0
 commands =
@@ -39,5 +42,5 @@ commands =
 [flake8]
 select = E,H,W,F
 max-line-length = 119
-ignore =
+ignore = W503   #conflict with W504
 per-file-ignores=