diff --git a/pytest.ini b/pytest.ini deleted file mode 100644 index 0ec78120..00000000 --- a/pytest.ini +++ /dev/null @@ -1,8 +0,0 @@ -[pytest] -testpaths: src -pythonpath: src -markers = - integration: mark a test that will only run on a fully integrated CNaaS-NMS deployment - equipment: mark a test that requires live equipment to be available for testing - -addopts = --docker-compose=../docker/docker-compose_pytest.yaml diff --git a/tox.ini b/tox.ini new file mode 100644 index 00000000..41b5343e --- /dev/null +++ b/tox.ini @@ -0,0 +1,21 @@ +# -*- indent-tabs-mode: nil; -*- +[tox] +envlist = py{37,38,39} +skipsdist = True +basepython = python3.7 + +[pytest] +testpaths = src +pythonpath = src +markers = + integration: mark a test that will only run on a fully integrated CNaaS-NMS deployment + equipment: mark a test that requires live equipment to be available for testing + +[testenv] +passenv = USER HOME + +deps = + -r requirements.txt + +commands = + pytest --docker-compose={toxinidir}/docker/docker-compose_pytest.yaml {posargs}