inject_user_key routine fixes
[osm/RO.git] / osm_ro / http_tools / tox.ini
1 # This tox file allows the devs to run unit tests only for this subpackage.
2 # In order to do so, cd into the directory and run `tox`
3
4 [tox]
5 minversion = 1.8
6 envlist = py27,py36,flake8,radon
7 skipsdist = True
8
9 [testenv]
10 changedir = {toxinidir}
11 commands =
12 nosetests -d --with-coverage --cover-package=. {posargs:tests}
13 deps =
14 WebTest
15 bottle
16 coverage
17 mock
18 nose
19 six
20 PyYaml
21
22 [testenv:flake8]
23 changedir = {toxinidir}
24 deps = flake8
25 commands = flake8 {posargs:.}
26
27 [testenv:radon]
28 changedir = {toxinidir}
29 deps = radon
30 commands =
31 radon cc --show-complexity --total-average {posargs:.}
32 radon mi -s {posargs:.}
33
34 [coverage:run]
35 branch = True
36 source = {toxinidir}
37 omit =
38 tests
39 tests/*
40 */test_*
41 .tox/*
42
43 [coverage:report]
44 show_missing = True
45
46 [flake8]
47 exclude =
48 request_processing.py
49 .tox