diff options
author | 2020-09-22 15:56:02 -0700 | |
---|---|---|
committer | 2020-09-22 15:56:02 -0700 | |
commit | 6c918781fa9f65b8aaa3056f9f570cd08583f598 (patch) | |
tree | 4eed53457d0ca5b090b7306617115a24e44cd759 /tests/helpers.py | |
parent | Constants: remove staff_channels (diff) | |
parent | Merge pull request #1061 from python-discord/feat/frontend/533/mod-log-names (diff) |
Merge branch 'master' into feat/info/1125/user-cmd-whitelist-modmail
Diffstat (limited to 'tests/helpers.py')
-rw-r--r-- | tests/helpers.py | 6 |
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: |