X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=installers%2Fcharm%2Fosm-ng-ui%2Ftox.ini;h=8c614b8c06e1203929a105f18556858e78807b18;hb=21503ab215361ec06b534df59246cacaa242270d;hp=94974def04ee7a0c2dcf23d5ee30dd2c17c8f453;hpb=773dd9959e5684902e84cc4751d47ccf321a4f22;p=osm%2Fdevops.git diff --git a/installers/charm/osm-ng-ui/tox.ini b/installers/charm/osm-ng-ui/tox.ini index 94974def..8c614b8c 100644 --- a/installers/charm/osm-ng-ui/tox.ini +++ b/installers/charm/osm-ng-ui/tox.ini @@ -26,10 +26,10 @@ envlist = lint, unit, integration [vars] src_path = {toxinidir}/src tst_path = {toxinidir}/tests -lib_path = {toxinidir}/lib/charms/osm_ng_ui all_path = {[vars]src_path} {[vars]tst_path} [testenv] +basepython = python3.8 setenv = PYTHONPATH = {toxinidir}:{toxinidir}/lib:{[vars]src_path} PYTHONBREAKPOINT=ipdb.set_trace @@ -54,7 +54,6 @@ deps = black flake8 flake8-docstrings - flake8-copyright flake8-builtins pyproject-flake8 pep8-naming @@ -62,7 +61,6 @@ deps = codespell commands = # uncomment the following line if this charm owns a lib - codespell {[vars]lib_path} codespell {toxinidir} --skip {toxinidir}/.git --skip {toxinidir}/.tox \ --skip {toxinidir}/build --skip {toxinidir}/lib --skip {toxinidir}/venv \ --skip {toxinidir}/.mypy_cache --skip {toxinidir}/icon.svg @@ -79,7 +77,7 @@ deps = coverage[toml] -r{toxinidir}/requirements.txt commands = - coverage run --source={[vars]src_path},{[vars]lib_path} \ + coverage run --source={[vars]src_path} \ -m pytest {[vars]tst_path}/unit -v --tb native -s {posargs} coverage report coverage xml