Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

test: cover info, setup, admin, voice, snapshot and log event delivery - #126

Merged
rnxm merged 1 commit into
devfrom
test/untested-cogs
Nov 12, 2026
Merged

rnxm merged 1 commit into
devfrom
test/untested-cogs

Conversation

@rnxm

@rnxm rnxm commented Nov 12, 2026

Copy link
Copy Markdown
Member

This adds 36 tests for cogs that had none. There are no code changes.

File Covers
test_info_cog.py info user for a member, for a user outside a guild, and when fetch_member falls back after NotFound · info role defaulting to the author's top role, and BadArgument with no member · info channel choosing the message key for each of its 5 channel types · unicode emoji vs. unknown input · template code parsing and the snapshot-code fallback
test_small_cogs.py setup prefix save and rejecting a prefix that's too long · admin reload/load/unload success and failure replies · l10nreload refusing paths outside the localization folders
test_voice_cog.py format_ms and the progress bar (live streams, clamping) · loop with each mode and cycling with none · seek bounds · _get_player guards (no guild, not in voice, different channel)
test_snapshot_and_log.py snapshot payload shape (roles, channels, overwrites) · Postgres create_snapshot → get_snapshot round trip · log _send skipping unconfigured guilds and disabled modules, preferring the per-event channel, and on_member_join delivering

ruff format --check, ruff check, ty check and pytest all pass (403 passed).

🤖 Generated with Claude Code

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>
@rnxm
rnxm merged commit 358b89d into dev Nov 12, 2026
6 checks passed
@rnxm
rnxm deleted the test/untested-cogs branch November 12, 2026 11:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant