Dmitry Tantsur c211e9c1b5 Refactoring: split test.py and rewrite tests for process
Tests for process.py completely rewritten to be more 'unit'.

Moved one function from utils that does not belong there
and fixed small issues uncovered by the new tests.

To simplify migration, prevent Python from writing bytecode
during testing.

Change-Id: Ie2c5d9217982620ba62f8105cf8e4b2cfaefe885
2014-12-09 20:51:14 +01:00

31 lines
634 B
INI

[tox]
envlist = py27,py33,pep8
[testenv]
usedevelop = True
deps =
-r{toxinidir}/requirements.txt
mock
coverage
commands =
coverage run --branch --include "ironic_discoverd*" -m unittest discover ironic_discoverd.test
coverage report -m --fail-under 90
setenv = PYTHONDONTWRITEBYTECODE=1
[testenv:pep8]
basepython = python2.7
deps =
-r{toxinidir}/requirements.txt
hacking
docutils
commands =
flake8 ironic_discoverd
rst2html.py --strict README.rst /dev/null
rst2html.py --strict CONTRIBUTING.rst /dev/null
[flake8]
max-complexity=15
[hacking]
import_exceptions = ironicclient.exceptions