This repository was archived by the owner on Nov 13, 2026. It is now read-only.
Repository navigation
test: cover info, setup, admin, voice, snapshot and log event delivery - #126
Merged
Merged
Conversation
36 new tests for cogs that had none: - info: user/member/DM branches, role default and missing role, channel info by channel type, unicode vs unknown emoji, template code parsing and the snapshot-code fallback; - setup/admin: prefix validation and save, extension reload/load/unload success and failure replies, the l10nreload path guard; - voice: format_ms, progress bar (live streams, clamping), loop modes and cycling, seek bounds, _get_player guards; - snapshot: captured payload shape, create/get round trip on Postgres; - log: _send skips unconfigured guilds and disabled modules, prefers the per-event channel, and on_member_join delivers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This adds 36 tests for cogs that had none. There are no code changes.
test_info_cog.pyinfo userfor a member, for a user outside a guild, and whenfetch_memberfalls back afterNotFound·info roledefaulting to the author's top role, andBadArgumentwith no member ·info channelchoosing the message key for each of its 5 channel types · unicode emoji vs. unknown input · template code parsing and the snapshot-code fallbacktest_small_cogs.pysetup prefixsave and rejecting a prefix that's too long ·admin reload/load/unloadsuccess and failure replies ·l10nreloadrefusing paths outside the localization folderstest_voice_cog.pyformat_msand the progress bar (live streams, clamping) ·loopwith each mode and cycling with none ·seekbounds ·_get_playerguards (no guild, not in voice, different channel)test_snapshot_and_log.pycreate_snapshot→get_snapshotround trip · log_sendskipping unconfigured guilds and disabled modules, preferring the per-event channel, andon_member_joindeliveringruff format --check,ruff check,ty checkandpytestall pass (403 passed).🤖 Generated with Claude Code