blob: 43055c26107c897bb9de6d75ade5d72dcd69968b [file] [log] [blame]
Anderson Bravalheri0446cd52018-08-17 15:26:19 +01001# 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]
5minversion = 1.8
6envlist = py27,py36,flake8,radon
7skipsdist = True
8
9[testenv]
10changedir = {toxinidir}
11commands =
12 nosetests -d --with-coverage --cover-package=. {posargs:tests}
13deps =
14 WebTest
15 bottle
16 coverage
17 mock
18 nose
19 six
20 PyYaml
21
22[testenv:flake8]
23changedir = {toxinidir}
24deps = flake8
25commands = flake8 {posargs:.}
26
27[testenv:radon]
28changedir = {toxinidir}
29deps = radon
30commands =
31 radon cc --show-complexity --total-average {posargs:.}
32 radon mi -s {posargs:.}
33
34[coverage:run]
35branch = True
36source = {toxinidir}
37omit =
38 tests
39 tests/*
40 */test_*
41 .tox/*
42
43[coverage:report]
44show_missing = True
45
46[flake8]
47exclude =
48 request_processing.py
49 .tox