diff options
| author | 2021-05-04 05:09:04 +0300 | |
|---|---|---|
| committer | 2021-05-04 05:09:04 +0300 | |
| commit | 4bf9a7a545e2ffb507fbb379df1695755a2eea1b (patch) | |
| tree | ba6882cb3fc92500377ce6ca8302114ead26c12a /tests | |
| parent | Adds Voice Test Cases To Already Silenced Test (diff) | |
Adds Missing Voice Version Of Tests
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/bot/exts/moderation/test_silence.py | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/tests/bot/exts/moderation/test_silence.py b/tests/bot/exts/moderation/test_silence.py index 0d135698e..729b28412 100644 --- a/tests/bot/exts/moderation/test_silence.py +++ b/tests/bot/exts/moderation/test_silence.py @@ -623,10 +623,11 @@ class UnsilenceTests(unittest.IsolatedAsyncioTestCase):          """Permissions were not set and `False` was returned for an already unsilenced channel."""          self.cog.scheduler.__contains__.return_value = False          self.cog.previous_overwrites.get.return_value = None -        channel = MockTextChannel() -        self.assertFalse(await self.cog._unsilence(channel)) -        channel.set_permissions.assert_not_called() +        for channel in (MockVoiceChannel(), MockTextChannel()): +            with self.subTest(channel=channel): +                self.assertFalse(await self.cog._unsilence(channel)) +                channel.set_permissions.assert_not_called()      async def test_restored_overwrites_text(self):          """Text channel's `send_message` and `add_reactions` overwrites were restored.""" | 
