aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py
diff options
context:
space:
mode:
authorGravatar Rohan Reddy Alleti <[email protected]>2020-09-25 15:32:18 +0530
committerGravatar GitHub <[email protected]>2020-09-25 15:32:18 +0530
commit06293df053577dd6ca03a39f4675e8d724d252b0 (patch)
tree4f224cf2931d6d3c62cdcf2def38f87e6f12603f /tests/helpers.py
parentUpdate users on bot start via HTTP PATCH method and send only user ID and the... (diff)
parentMerge pull request #1171 from python-discord/kwzrd/log-levels (diff)
Merge branch 'master' into smart_syncing_users
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 facc4e1af..e47fdf28f 100644
--- a/tests/helpers.py
+++ b/tests/helpers.py
@@ -308,7 +308,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: