feature8030 move WIM connector to plugins
[osm/RO.git] / RO / osm_ro / wim / 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,flake8,radon
21 skipsdist = True
22
23 [testenv]
24 passenv = *_DB_*
25 setenv =
26 PATH = {env:PATH}:{toxinidir}/../../database_utils
27 DBUTILS = {toxinidir}/../../database_utils
28 changedir = {toxinidir}
29 commands =
30 nosetests -v -d {posargs:tests}
31 deps =
32 WebTest
33 logging
34 bottle
35 coverage
36 jsonschema
37 mock
38 mysqlclient
39 nose
40 six
41 PyYaml
42 paramiko
43 ipdb
44 requests
45
46 [testenv:flake8]
47 changedir = {toxinidir}
48 deps = flake8
49 commands = flake8 {posargs:.}
50
51 [testenv:radon]
52 changedir = {toxinidir}
53 deps = radon
54 commands =
55 radon cc --show-complexity --total-average {posargs:.}
56 radon mi -s {posargs:.}
57
58 [coverage:run]
59 branch = True
60 source = {toxinidir}
61 omit =
62 tests
63 tests/*
64 */test_*
65 .tox/*
66
67 [coverage:report]
68 show_missing = True
69
70 [flake8]
71 exclude =
72 .tox