Skip to content

Commit 2184b9c

Browse files
manavgupclaude
andcommitted
fix(tests): Fix Docker build test after Poetry root migration
Updated test to copy pyproject.toml and poetry.lock from project root instead of backend/ directory. Changes: - Added pyproject.toml and poetry.lock to root files_to_copy list - Removed these files from backend_files list - Added comment explaining Poetry root migration (Issue #501) This fixes the Docker build failure: ERROR: failed to compute cache key: "/pyproject.toml": not found Root cause: Makefile test was copying Poetry files from backend/ but they've been moved to project root in the Poetry migration. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent c483a88 commit 2184b9c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/test_makefile_targets_direct.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ def setup_test_environment(self) -> None:
3737
"docker-compose.dev.yml",
3838
"docker-compose-infra.yml",
3939
"env.example",
40-
"env.dev.example"
40+
"env.dev.example",
41+
# Poetry files moved to root (Issue #501 - October 2025)
42+
"pyproject.toml",
43+
"poetry.lock"
4144
]
4245

4346
# Copy files
@@ -53,9 +56,9 @@ def setup_test_environment(self) -> None:
5356
# Copy essential backend files and directories needed by Dockerfile
5457
backend_dst.mkdir(parents=True, exist_ok=True)
5558

56-
# Copy root files
59+
# Copy backend-specific files
5760
backend_files = [
58-
"main.py", "healthcheck.py", "pyproject.toml", "poetry.lock"
61+
"main.py", "healthcheck.py"
5962
]
6063
for file in backend_files:
6164
src_file = backend_src / file

0 commit comments

Comments
 (0)