Silence several warnings being emitted by the tests#928
Silence several warnings being emitted by the tests#928rapids-bot[bot] merged 7 commits intoNVIDIA:release/1.3from
Conversation
…Pydantic deprecation warning Signed-off-by: David Gardner <dagardner@nvidia.com>
…Pydantic deprecation warning Signed-off-by: David Gardner <dagardner@nvidia.com>
Signed-off-by: David Gardner <dagardner@nvidia.com>
…ver an attribute from an AsyncMock object ii called as if it were a blocking method Signed-off-by: David Gardner <dagardner@nvidia.com>
Signed-off-by: David Gardner <dagardner@nvidia.com>
…to david-model_fields-warning Signed-off-by: David Gardner <dagardner@nvidia.com>
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 <dagardner@nvidia.com>
|
/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