[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://opendev.org/openstack/etcd3gw.git@1.0.1#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}
