Revert "Removing deprecated/unused/outdated code"
[osm/RO.git] / RO / osm_ro / http_tools / tox.ini
1 ##
2 # Licensed under the Apache License, Version 2.0 (the "License"); you may
3 # not use this file except in compliance with the License. You may obtain
4 # a copy of the License at
5 #
6 # http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
10 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
11 # License for the specific language governing permissions and limitations
12 # under the License.
13 ##
14
15 # This tox file allows the devs to run unit tests only for this subpackage.
16 # In order to do so, cd into the directory and run `tox`
17
18 [tox]
19 minversion = 1.8
20 envlist = py27,py36,flake8,radon
21 skipsdist = True
22
23 [testenv]
24 changedir = {toxinidir}
25 commands =
26 nosetests -d --with-coverage --cover-package=. {posargs:tests}
27 deps =
28 WebTest
29 bottle
30 coverage
31 mock
32 nose
33 six
34 PyYaml
35
36 [testenv:flake8]
37 changedir = {toxinidir}
38 deps = flake8
39 commands = flake8 {posargs:.}
40
41 [testenv:radon]
42 changedir = {toxinidir}
43 deps = radon
44 commands =
45 radon cc --show-complexity --total-average {posargs:.}
46 radon mi -s {posargs:.}
47
48 [coverage:run]
49 branch = True
50 source = {toxinidir}
51 omit =
52 tests
53 tests/*
54 */test_*
55 .tox/*
56
57 [coverage:report]
58 show_missing = True
59
60 [flake8]
61 exclude =
62 request_processing.py
63 .tox