diff options
author | 2022-10-01 00:14:21 +0300 | |
---|---|---|
committer | 2022-10-01 00:14:21 +0300 | |
commit | 7d46b1ed1fdec2a052c147a89f69354469bbfd18 (patch) | |
tree | 472cc959d61911a01712ef81c62eee5a20554e11 /tests/helpers.py | |
parent | Split actions and validations to their own packcages (diff) |
Fix tests
Diffstat (limited to 'tests/helpers.py')
-rw-r--r-- | tests/helpers.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/helpers.py b/tests/helpers.py index 28a8e40a7..35a8a71f7 100644 --- a/tests/helpers.py +++ b/tests/helpers.py @@ -393,15 +393,15 @@ dm_channel_instance = discord.DMChannel(me=me, state=state, data=dm_channel_data class MockDMChannel(CustomMockMixin, unittest.mock.Mock, HashableMixin): """ - A MagicMock subclass to mock TextChannel objects. + A MagicMock subclass to mock DMChannel objects. - Instances of this class will follow the specifications of `discord.TextChannel` instances. For + Instances of this class will follow the specifications of `discord.DMChannel` instances. For more information, see the `MockGuild` docstring. """ spec_set = dm_channel_instance def __init__(self, **kwargs) -> None: - default_kwargs = {'id': next(self.discord_id), 'recipient': MockUser(), "me": MockUser()} + default_kwargs = {'id': next(self.discord_id), 'recipient': MockUser(), "me": MockUser(), 'guild': None} super().__init__(**collections.ChainMap(kwargs, default_kwargs)) |