X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_ro%2Fhttp_tools%2Ftox.ini;fp=osm_ro%2Fhttp_tools%2Ftox.ini;h=43055c26107c897bb9de6d75ade5d72dcd69968b;hb=0446cd5df24c38f95cea13b995c553e9b2403f21;hp=0000000000000000000000000000000000000000;hpb=63056c57eea17465ada68bcc076a0159d9c5f93f;p=osm%2FRO.git diff --git a/osm_ro/http_tools/tox.ini b/osm_ro/http_tools/tox.ini new file mode 100644 index 00000000..43055c26 --- /dev/null +++ b/osm_ro/http_tools/tox.ini @@ -0,0 +1,49 @@ +# This tox file allows the devs to run unit tests only for this subpackage. +# In order to do so, cd into the directory and run `tox` + +[tox] +minversion = 1.8 +envlist = py27,py36,flake8,radon +skipsdist = True + +[testenv] +changedir = {toxinidir} +commands = + nosetests -d --with-coverage --cover-package=. {posargs:tests} +deps = + WebTest + bottle + coverage + mock + nose + six + PyYaml + +[testenv:flake8] +changedir = {toxinidir} +deps = flake8 +commands = flake8 {posargs:.} + +[testenv:radon] +changedir = {toxinidir} +deps = radon +commands = + radon cc --show-complexity --total-average {posargs:.} + radon mi -s {posargs:.} + +[coverage:run] +branch = True +source = {toxinidir} +omit = + tests + tests/* + */test_* + .tox/* + +[coverage:report] +show_missing = True + +[flake8] +exclude = + request_processing.py + .tox