diff --git a/tox.ini b/tox.ini index e31a49f6f5..5579c7754b 100644 --- a/tox.ini +++ b/tox.ini @@ -14,14 +14,18 @@ commands = basepython = python3 setenv = PYTHONPATH = {toxinidir} + CLUSTER = local-cluster passenv = KUBECONFIG commands = pip install poetry poetry install + k3d cluster create {env:CLUSTER} poetry run pytest -o log_cli=true tests/test_resources.py -k 'not kubevirt' + k3d cluster delete {env:CLUSTER} allowlist_externals = poetry + k3d [testenv:unittests] basepython = python3