Project: Add `monkey/` to PYTHONPATH when running pytest
Without explicitly setting the python path, conftest.py can not find common.*, monkey_island.*, or infection_monkey.*.
This commit is contained in:
parent
05abc22ac0
commit
8e875143ac
|
@ -23,6 +23,7 @@ log_cli_date_format = "%H:%M:%S"
|
||||||
addopts = "-v --capture=sys tests/unit_tests"
|
addopts = "-v --capture=sys tests/unit_tests"
|
||||||
norecursedirs = "node_modules dist"
|
norecursedirs = "node_modules dist"
|
||||||
markers = ["slow: mark test as slow"]
|
markers = ["slow: mark test as slow"]
|
||||||
|
pythonpath = "./monkey"
|
||||||
|
|
||||||
[tool.vulture]
|
[tool.vulture]
|
||||||
exclude = ["monkey/monkey_island/cc/ui/", "monkey/tests/", "monkey/monkey_island/docs/"]
|
exclude = ["monkey/monkey_island/cc/ui/", "monkey/tests/", "monkey/monkey_island/docs/"]
|
||||||
|
|
Loading…
Reference in New Issue