diff options
author | 2020-04-20 18:53:31 +0200 | |
---|---|---|
committer | 2020-04-23 16:15:18 +0200 | |
commit | 00291d7d5f859e4131cb5c94541a90f80f358376 (patch) | |
tree | 2340eb020a05f30ee930d55649526e07644d049c /tests/helpers.py | |
parent | Replace `in_channel` decorator by `in_whitelisted_context` (diff) |
Remove vestigial kwargs from MockTextChannel.__init__
Diffstat (limited to 'tests/helpers.py')
-rw-r--r-- | tests/helpers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/helpers.py b/tests/helpers.py index 8e13f0f28..9001deedf 100644 --- a/tests/helpers.py +++ b/tests/helpers.py @@ -315,7 +315,7 @@ class MockTextChannel(CustomMockMixin, unittest.mock.Mock, HashableMixin): """ spec_set = channel_instance - def __init__(self, name: str = 'channel', channel_id: int = 1, **kwargs) -> None: + def __init__(self, **kwargs) -> None: default_kwargs = {'id': next(self.discord_id), 'name': 'channel', 'guild': MockGuild()} super().__init__(**collections.ChainMap(kwargs, default_kwargs)) |