Skip to content

Commit c83eff0

Browse files
EstrellaXDclaude
andcommitted
fix: add pythonpath to pytest config for CI compatibility
Without pythonpath=["src"], pytest can't resolve `from module.xxx` imports when running from the backend/ directory in CI. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent d8b3167 commit c83eff0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

backend/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ dev = [
3737

3838
[tool.pytest.ini_options]
3939
testpaths = ["src/test"]
40+
pythonpath = ["src"]
4041
asyncio_mode = "auto"
4142

4243
[tool.ruff]

0 commit comments

Comments
 (0)