fix: add choices/Choice to discord mock for /voice slash command test

This commit is contained in:
0xbyt4 2026-03-14 00:22:28 +03:00
parent e3126aeb40
commit 49f3f0fc62

View file

@ -21,6 +21,8 @@ def _ensure_discord_mock():
discord_mod.Interaction = object
discord_mod.app_commands = SimpleNamespace(
describe=lambda **kwargs: (lambda fn: fn),
choices=lambda **kwargs: (lambda fn: fn),
Choice=lambda **kwargs: SimpleNamespace(**kwargs),
)
ext_mod = MagicMock()