https://github.com/EGI-FCTF/cloud-bdii-provider
Tip revision: aae350ad05f0837b9fee5475609d8c033ce5481d authored by Enol Fernández on 17 March 2021, 10:24:18 UTC
Avoid failing if endpoint is not available (#218)
Avoid failing if endpoint is not available (#218)
Tip revision: aae350a
tox.ini
[tox]
minversion = 1.6
envlist = py37,py38,py27,pep8,nonascii
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
[testenv:pep8]
commands =
flake8
# Run security linter
# B110: except: pass
# B410: importing etree
# B702: Test for use of mako templates
bandit -r cloud_info_provider -x tests -s B110,B410,B702
[testenv:bandit]
# NOTE(browne): This is required for the integration test job of the bandit
# project. Please do not remove.
commands = bandit -r cloud_info_provider -x tests -s B110,B410,B702
[testenv:venv]
commands = {posargs}
[testenv:cover]
commands = python setup.py testr --coverage --testr-args='{posargs}'
[testenv:coveralls]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
commands = python setup.py testr --coverage --testr-args='{posargs}'
coveralls
deps = coveralls
{[testenv]deps}
[testenv:cobertura]
deps = pytest-cov
-r{toxinidir}/test-requirements.txt
commands = py.test --cov=cloud_info_provider --cov-report=xml --cov-report=term-missing cloud_info_provider/tests
[testenv:docs]
commands = python setup.py build_sphinx
[flake8]
# H803 skipped on purpose per list discussion.
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
ignore = E123,E125,H803
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
[testenv:nonascii]
commands = python -c "import glob; [open(n).read().encode('ascii') for n in glob.glob('cloud_info_provider/formatters/templates/*')]"
deps =