aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-10-09 14:02:16 -0700
committerGravatar MarkKoz <[email protected]>2020-10-09 14:17:07 -0700
commit85c2e198542908d6f0b4f1557cd8cbb9ac42cb64 (patch)
tree98bbd9083cf12c435ccc105711150db4808ce558 /tests/helpers.py
parentSilence: fix scheduled tasks not being cancelled on unload (diff)
parentMerge pull request #1165 from RohanJnr/smart_syncing_users (diff)
Merge master, fix conflicts, and create redis session in silence tests
Diffstat (limited to 'tests/helpers.py')
-rw-r--r--tests/helpers.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/helpers.py b/tests/helpers.py
index 6cf5d12bd..870f66197 100644
--- a/tests/helpers.py
+++ b/tests/helpers.py
@@ -291,7 +291,11 @@ class MockBot(CustomMockMixin, unittest.mock.MagicMock):
Instances of this class will follow the specifications of `discord.ext.commands.Bot` instances.
For more information, see the `MockGuild` docstring.
"""
- spec_set = Bot(command_prefix=unittest.mock.MagicMock(), loop=_get_mock_loop())
+ spec_set = Bot(
+ command_prefix=unittest.mock.MagicMock(),
+ loop=_get_mock_loop(),
+ redis_session=unittest.mock.MagicMock(),
+ )
additional_spec_asyncs = ("wait_for", "redis_ready")
def __init__(self, **kwargs) -> None: