forked from juju-solutions/charm-openstack-integrator
-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
54 lines (47 loc) · 1.12 KB
/
tox.ini
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
[flake8]
max-line-length = 88
ignore =
# line break before binary operator
W503
[tox]
envlist = lint,unit
skipsdist = True
minversion = 3.2.0
[pytest]
filterwarnings =
ignore::DeprecationWarning
[testenv]
basepython = python3
setenv =
PYTHONPATH={toxinidir}:{toxinidir}/lib
PYTHONBREAKPOINT=ipdb.set_trace
[testenv:unit]
deps =
pyyaml
pytest-cov
ipdb
git+https://github.com/juju-solutions/charms.unit_test/#egg=charms.unit_test
python-openstackclient
-r wheelhouse.txt
commands =
pytest --tb native -s -vv \
--cov-report term-missing --cov=lib \
{posargs} {toxinidir}/tests/unit
[testenv:lint]
deps =
flake8
black
commands =
flake8 {toxinidir}/reactive {toxinidir}/lib {toxinidir}/tests
black --check {toxinidir}/reactive {toxinidir}/lib {toxinidir}/tests
[testenv:format]
deps = black
commands = black {toxinidir}/reactive {toxinidir}/lib {toxinidir}/tests
[testenv:integration]
deps =
juju
pytest
pytest-operator
lightkube
ipdb
commands = pytest --tb native --show-capture=no --log-cli-level=INFO -s {posargs} {toxinidir}/tests/integration