Skip to content

Commit 297f9f9

Browse files
committed
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 <[email protected]>
1 parent b1b9cc0 commit 297f9f9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/cephadm/tox.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ exclude =
2424
statistics = True
2525
2626
[testenv]
27+
setenv =
28+
PYTHONPATH = $PYTHONPATH:..:{toxinidir}/../python-common
29+
passenv =
30+
PYTHONPATH
2731
skip_install=true
2832
deps =
2933
-rzipapp-reqs.txt
@@ -35,6 +39,10 @@ deps =
3539
commands=pytest {posargs}
3640
3741
[testenv:mypy]
42+
setenv =
43+
MYPYPATH = {toxinidir}/..:{toxinidir}/../python-common
44+
passenv =
45+
MYPYPATH
3846
deps =
3947
mypy
4048
types-PyYAML

0 commit comments

Comments
 (0)