aboutsummaryrefslogtreecommitdiffstats
path: root/tests/_autospec.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2022-10-10 21:53:00 +0100
committerGravatar Chris Lovering <[email protected]>2022-10-10 21:55:30 +0100
commita1f4f60147ce3fd0e909baa37795d5db8f68bf30 (patch)
treefa7bef5d48cf1d3654d1c88afffee4d4f880ba62 /tests/_autospec.py
parentnoqa an abstract class with no abstract methods (diff)
Use explicit mock channels in tests to remove warning
This is need due to the new behaviour of discord.utils.get supporting both iterables and async iterables by checking for the presence of the __aiter__ attr on the iterable. GuildChannelConverter._resolve_channel uses this get util under the hood which grabs the voice channels on the guild, which were previously Mocked by the MagicMock, meaning the __aiter__ attr was present, causing the util to think it should be ran asynchronously.
Diffstat (limited to 'tests/_autospec.py')
0 files changed, 0 insertions, 0 deletions