blob: 93e2f15f25b24a2e4d8fab80235b42f1a879f26f [file] [log] [blame]
##
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
##
# 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