aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2019-10-14 22:32:17 +0200
committerGravatar Sebastiaan Zeeff <[email protected]>2019-10-14 22:32:17 +0200
commit81ace30dd45a53cda49931e496014827fdcfa816 (patch)
treecb7a72198b25318d5ecea19b996ce1834b8a8675 /tests/helpers.py
parentMerge branch 'unittest-migration' of github.com:python-discord/bot into unitt... (diff)
parentMake test_token_remover use our discord Mocks (diff)
Merge branch 'cogs-tokenremover-unittest' into unittest-migration
Diffstat (limited to 'tests/helpers.py')
-rw-r--r--tests/helpers.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/helpers.py b/tests/helpers.py
index f8e8357f1..892d42e6c 100644
--- a/tests/helpers.py
+++ b/tests/helpers.py
@@ -415,6 +415,7 @@ class MockMessage(AttributeMock, unittest.mock.MagicMock):
def __init__(self, **kwargs) -> None:
super().__init__(spec=message_instance, **kwargs)
self.author = MockMember()
+ self.channel = MockTextChannel()
# `discord.Message` coroutines
self.ack = AsyncMock()