[tox]
minversion = 2.0
envlist = py38
skipsdist = True

[testenv]
usedevelop = True
setenv =
   VIRTUAL_ENV={envdir}
   PYTHONWARNINGS=default::DeprecationWarning,ignore::DeprecationWarning:distutils,ignore::DeprecationWarning:site,ignore:Using or importing the ABCs,ignore:dns.hash module,ignore:Please provide `is_available
deps = -r{toxinidir}/test-requirements.txt
commands =
    pip install -q -e "git+https://github.com/dims/etcd3-gateway.git@19abd85#egg=etcd3gw"
    coverage erase
    python setup.py testr --slowest --testr-args='{posargs}'
    coverage report -m

[testenv:venv]
commands = {posargs}

[testenv:cover]
commands = python setup.py test --coverage --coverage-package-name=networking_calico --testr-args='{posargs}'
    coverage report

[testenv:debug]
commands = oslo_debug_helper {posargs}
