Conversation
The import for the Message model in `src/agent/state.py` was an absolute import (`from src.models import Message`), which caused a `ModuleNotFoundError` during test collection because the python path was not set up to resolve `src` as a top-level package from within itself. This commit changes the import to be relative (`from ..models import Message`), which is the correct way for modules within a package to refer to each other. This resolves the import error and allows tests to be collected and run successfully.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThe PR adds a new Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
Summary by CodeRabbit
Refactor
Tests