diff options
| author | 2020-10-05 19:17:07 -0700 | |
|---|---|---|
| committer | 2020-10-05 19:21:52 -0700 | |
| commit | 08d4a5d33b0e5d5bb82a00617f51218a7c124a4f (patch) | |
| tree | 3d34ddc273fbf1858a84c443035f9a082121d23d /tests/helpers.py | |
| parent | Code block: support the "pycon" language specifier (diff) | |
| parent | Merge pull request #1215 from python-discord/joseph/verification (diff) | |
Merge master and fix conflicts
* Use absolute imports in the code block modules for consistency
* Move has_lines utility function into the helpers module
* Prefix names of code block modules with underscores so they won't
get picked up as extensions by the extension manager
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: |