-
Notifications
You must be signed in to change notification settings - Fork 423
Silence several warnings being emitted by the tests #928
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Silence several warnings being emitted by the tests #928
Conversation
…Pydantic deprecation warning Signed-off-by: David Gardner <[email protected]>
…Pydantic deprecation warning Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
…ver an attribute from an AsyncMock object ii called as if it were a blocking method Signed-off-by: David Gardner <[email protected]>
Signed-off-by: David Gardner <[email protected]>
…to david-model_fields-warning Signed-off-by: David Gardner <[email protected]>
WalkthroughSwitches Pydantic field access from instance-level to class-level in recursive component reference discovery; updates tests to use class-level model_fields. Adjusts MCP tests to use MagicMock for Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (5)**/*.{py,yaml,yml}📄 CodeRabbit inference engine (.cursor/rules/nat-test-llm.mdc)
Files:
**/*.py📄 CodeRabbit inference engine (.cursor/rules/nat-test-llm.mdc)
Files:
tests/**/*.py📄 CodeRabbit inference engine (.cursor/rules/general.mdc)
Files:
⚙️ CodeRabbit configuration file
Files:
{tests/**/*.py,examples/*/tests/**/*.py}📄 CodeRabbit inference engine (.cursor/rules/general.mdc)
Files:
**/*⚙️ CodeRabbit configuration file
Files:
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Signed-off-by: David Gardner <[email protected]>
|
/merge |
Description
AyncMockall attributes return anotherAyncMock, there were a few cases where a method was being called on an AsyncMock that was expected to be blocking (yielding an... was never awaitedwarning). In these situations I explicitly set a blocking mock object.model_fieldsattribute on the class not the instance, avoids Pydantic deprecation warningBy Submitting this PR I confirm:
Summary by CodeRabbit
Refactor
Tests
Chores