forked from harvester/tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
30 lines (26 loc) · 739 Bytes
/
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
[tox]
envlist = py36,py38,pep8
# TODO(gyee): we are not distributing the test code right now. Will need
# to revisit this once we have majority of the tests developed.
skipsdist = True
[testenv]
basepython = python3
setenv =
VIRTUAL_ENV = {envdir}
PYTHONWARNINGS = ignore:Unverified HTTPS request
deps = pytest
-r{toxinidir}/test-requirements.txt
commands =
{toxinidir}/terraform_test_artifacts/terraform_install.sh
find . -type f -name "*.pyc" -delete
pytest {posargs}
allowlist_externals = {toxinidir}/*,bash,find
passenv = http_proxy,HTTP_PROXY,https_proxy,HTTPS_PROXY,no_proxy,NO_PROXY,PBR_VERSION
[testenv:pep8]
deps = flake8
commands =
flake8
[flake8]
max-line-length = 99
[pytest]
render_collapsed = True