Skip to content
Python

pytest: put the repo root on sys.path

Rohit C Prasad560467633314
diff --git a/pyproject.toml b/pyproject.toml
index 36b48a75..fd748120 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -70,4 +70,7 @@ coworker = [
[tool.pytest.ini_options]
testpaths = ["tests"]
+# The reviewer-eval tests import from the repo-root scripts/ package; the pytest
+# console script (CI) does not put the root on sys.path the way `python -m pytest` does.
+pythonpath = ["."]
asyncio_mode = "auto"