diff options
| author | 2020-10-09 19:30:07 +0300 | |
|---|---|---|
| committer | 2020-10-09 19:30:07 +0300 | |
| commit | 97e5e8cd76a14d0e002d832140b95b025d9ab41c (patch) | |
| tree | 89e79b1de22cfa0104911c48ae34f9c807103221 /tests/helpers.py | |
| parent | Make bot shutdown remove all other non-extension cogs again (diff) | |
| parent | Merge pull request #1165 from RohanJnr/smart_syncing_users (diff) | |
Merge remote-tracking branch 'up/master' into bug-fixes
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: |