diff options
author | 2020-01-14 10:18:18 -0800 | |
---|---|---|
committer | 2020-02-12 10:07:53 -0800 | |
commit | 745c9d15114f90d01f8c21e30c2c40335c199a9e (patch) | |
tree | 2be4b2ac9176375b7507c0e85367a88d9be9fe3b /tests/helpers.py | |
parent | Sync tests: add messages to _reaction_check subtests (diff) |
Tests: add a return value for MockReaction.__str__
Diffstat (limited to 'tests/helpers.py')
-rw-r--r-- | tests/helpers.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/helpers.py b/tests/helpers.py index 71b80a223..b18a27ebe 100644 --- a/tests/helpers.py +++ b/tests/helpers.py @@ -521,6 +521,7 @@ class MockReaction(CustomMockMixin, unittest.mock.MagicMock): self.emoji = kwargs.get('emoji', MockEmoji()) self.message = kwargs.get('message', MockMessage()) self.users = AsyncIteratorMock(kwargs.get('users', [])) + self.__str__.return_value = str(self.emoji) webhook_instance = discord.Webhook(data=unittest.mock.MagicMock(), adapter=unittest.mock.MagicMock()) |