aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-08-17 13:29:16 -0700
committerGravatar MarkKoz <[email protected]>2020-08-17 13:29:16 -0700
commitccbc515cfedd5938f4d1d50404a1b32d66bd5511 (patch)
tree7f64782b00e07646750a0dc144b2828886ad7844 /tests
parentSilence tests: fix silence cache test for overwrites (diff)
Silence tests: fix test_unsilence_private_for_false
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/cogs/moderation/test_silence.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/bot/cogs/moderation/test_silence.py b/tests/bot/cogs/moderation/test_silence.py
index 6f0cd880d..c1039f85c 100644
--- a/tests/bot/cogs/moderation/test_silence.py
+++ b/tests/bot/cogs/moderation/test_silence.py
@@ -196,7 +196,10 @@ class SilenceTests(unittest.IsolatedAsyncioTestCase):
async def test_unsilence_private_for_false(self):
"""Permissions are not set and `False` is returned in an unsilenced channel."""
- channel = Mock()
+ self.cog.scheduler.__contains__.return_value = False
+ self.cog.muted_channel_perms.get.return_value = None
+ channel = MockTextChannel()
+
self.assertFalse(await self.cog._unsilence(channel))
channel.set_permissions.assert_not_called()