diff options
author | 2020-02-24 02:12:02 +0100 | |
---|---|---|
committer | 2020-02-24 02:12:02 +0100 | |
commit | b8bd18bd743608ddff47064d0b459edff3da65e3 (patch) | |
tree | 17042cf26ee42f8c38845905cc28a76ac43efd24 /tests/helpers.py | |
parent | Use realistic mixin implementation (diff) |
Migrate syncers test suite to Python 3.8
The test suite for the new role/member syncers used the "old"-style test suite with the helpers implemented for Python 3.7. I have migrated it to use the new Python 3.8 asyncio test helpers.
Diffstat (limited to 'tests/helpers.py')
-rw-r--r-- | tests/helpers.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/helpers.py b/tests/helpers.py index 7ae7ed621..8e13f0f28 100644 --- a/tests/helpers.py +++ b/tests/helpers.py @@ -261,9 +261,7 @@ class MockAPIClient(CustomMockMixin, unittest.mock.MagicMock): Instances of this class will follow the specifications of `bot.api.APIClient` instances. For more information, see the `MockGuild` docstring. """ - - def __init__(self, **kwargs) -> None: - super().__init__(spec_set=APIClient, **kwargs) + spec_set = APIClient # Create a Bot instance to get a realistic MagicMock of `discord.ext.commands.Bot` |