From: Adam King Date: Mon, 21 Oct 2024 15:04:10 +0000 (-0400) Subject: cephadm: add python-common/ceph to MYPYPATH and pytest PYTHONPATH X-Git-Tag: testing/wip-pdonnell-testing-20241031.004112-debug~9^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=297f9f94b3c5e877bc361be0c3deed05448a7440;p=ceph-ci.git cephadm: add python-common/ceph to MYPYPATH and pytest PYTHONPATH Otherwise the unit tests will fail trying to import from here. Signed-off-by: Adam King --- diff --git a/src/cephadm/tox.ini b/src/cephadm/tox.ini index 20608c1681c..7658b3b31f9 100644 --- a/src/cephadm/tox.ini +++ b/src/cephadm/tox.ini @@ -24,6 +24,10 @@ exclude = statistics = True [testenv] +setenv = + PYTHONPATH = $PYTHONPATH:..:{toxinidir}/../python-common +passenv = + PYTHONPATH skip_install=true deps = -rzipapp-reqs.txt @@ -35,6 +39,10 @@ deps = commands=pytest {posargs} [testenv:mypy] +setenv = + MYPYPATH = {toxinidir}/..:{toxinidir}/../python-common +passenv = + MYPYPATH deps = mypy types-PyYAML