Repository navigation
chore(discord): consolidate message media fixtures - #117695
Merged
Merged
Conversation
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Additional instructions
MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.
What Problem This Solves
The Discord message-media test suite repeated attachment, sticker, and successful-download setup across nearly every scenario, making the security- and MIME-sensitive coverage harder to scan and maintain.
Why This Change Was Made
Introduces typed, fresh fixture factories for Discord attachments, sticker items, and download results, and centralizes mock reset between tests. The refactor keeps scenario bodies and assertions explicit: no test tables, assertion packing, or production changes.
User Impact
No user-visible behavior changes. The test suite is 302 lines smaller while retaining the same Discord media coverage and stronger per-test mock isolation.
Evidence
expectexpressions identical; 111 runtime expectations preserved (35 direct + 4 success helpers × 18 + 2 fallback helpers × 2).pnpm check:changed: passed extension-test typecheck, lint, formatting, dead-code scans, dependency pins, plugin boundaries, and extension tests on the same lease.gpt-5.6-solxhigh autoreview: no findings; patch correct (0.97 confidence).origin/mainsynthetic merge: clean; merged target blob exactly matches the reviewed commit.