aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/helpers.py')
-rw-r--r--tests/helpers.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/helpers.py b/tests/helpers.py
index 2d20b4d07..0d955b521 100644
--- a/tests/helpers.py
+++ b/tests/helpers.py
@@ -486,7 +486,6 @@ class MockInteraction(CustomMockMixin, unittest.mock.MagicMock):
Instances of this class will follow the specifications of `discord.Interaction`
instances. For more information, see the `MockGuild` docstring.
"""
- # spec_set = context_instance
def __init__(self, **kwargs) -> None:
super().__init__(**kwargs)
@@ -550,6 +549,16 @@ class MockMessage(CustomMockMixin, unittest.mock.MagicMock):
self.channel = kwargs.get('channel', MockTextChannel())
+class MockInteractionMessage(MockMessage):
+ """
+ A MagicMock subclass to mock InteractionMessage objects.
+
+ Instances of this class will follow the specifications of `discord.InteractionMessage` instances. For more
+ information, see the `MockGuild` docstring.
+ """
+ pass
+
+
emoji_data = {'require_colons': True, 'managed': True, 'id': 1, 'name': 'hyperlemon'}
emoji_instance = discord.Emoji(guild=MockGuild(), state=unittest.mock.MagicMock(), data=emoji_data)