fix: add choices/Choice to discord mock for /voice slash command test
This commit is contained in:
parent
e3126aeb40
commit
49f3f0fc62
1 changed files with 2 additions and 0 deletions
|
|
@ -21,6 +21,8 @@ def _ensure_discord_mock():
|
||||||
discord_mod.Interaction = object
|
discord_mod.Interaction = object
|
||||||
discord_mod.app_commands = SimpleNamespace(
|
discord_mod.app_commands = SimpleNamespace(
|
||||||
describe=lambda **kwargs: (lambda fn: fn),
|
describe=lambda **kwargs: (lambda fn: fn),
|
||||||
|
choices=lambda **kwargs: (lambda fn: fn),
|
||||||
|
Choice=lambda **kwargs: SimpleNamespace(**kwargs),
|
||||||
)
|
)
|
||||||
|
|
||||||
ext_mod = MagicMock()
|
ext_mod = MagicMock()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue