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 <adking@redhat.com>
This commit is contained in:
Adam King 2024-10-21 11:04:10 -04:00
parent b1b9cc0c84
commit 297f9f94b3

View File

@ -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