fix(test): align clip name with asset filename in ClipGetInfo test#738
Conversation
Unity renames AnimationClip objects to match the asset filename on import. The test was setting name="InfoClip" but saving to a path with a GUID suffix, causing a name mismatch assertion failure. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdjusts the ClipGetInfo test to use a dynamically generated clip name that matches the imported asset filename, ensuring the test reflects Unity’s actual AnimationClip renaming behavior and fixes a failing name assertion. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThe Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
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 |
Unity renames AnimationClip objects to match the asset filename on import. The test was setting name="InfoClip" but saving to a path with a GUID suffix, causing the assertion to fail.
Pre-existing issue from #696 (animation feature PR).
Summary by Sourcery
Bug Fixes:
Summary by CodeRabbit