forked from openstack-archive/fuel-devops
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
36 lines (30 loc) · 880 Bytes
/
tox.ini
File metadata and controls
36 lines (30 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
minversion = 1.6
envlist = py27, pep8
skipsdist = True
[testenv]
usedevelop = True
deps = -r{toxinidir}/test-requirements.txt
commands =
py.test -vv {posargs:devops/tests}
[testenv:venv]
commands = {posargs:}
[testenv:pep8]
deps = hacking==0.10.1
usedevelop = False
commands =
flake8
[flake8]
# H238 old style class declaration, use new style (inherit from `object`)
# H234 assertEquals is deprecated, use assertEqual
ignore = H234,H238
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools,__init__.py,docs
show-pep8 = True
show-source = True
count = True
[pytest]
DJANGO_SETTINGS_MODULE=devops.settings