aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2020-03-15 18:21:49 +0100
committerGravatar Numerlor <[email protected]>2020-03-15 18:21:49 +0100
commit36c57c6f89a070fbb77a641182e37c788b6de7a0 (patch)
tree5473abf3f03487845f60ca6e9905fd5f8cec51e0 /tests
parentDocument returns values of private methods. (diff)
Adjust tests for new calling behaviour.
`.set_permissions` calls were changed to use kwargs directly instead of an overwrite, this reflects the changes in tests.
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/cogs/moderation/test_silence.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/bot/cogs/moderation/test_silence.py b/tests/bot/cogs/moderation/test_silence.py
index 6114fee21..b09426fde 100644
--- a/tests/bot/cogs/moderation/test_silence.py
+++ b/tests/bot/cogs/moderation/test_silence.py
@@ -141,7 +141,7 @@ class SilenceTests(unittest.IsolatedAsyncioTestCase):
channel = MockTextChannel()
self.assertTrue(await self.cog._silence(channel, False, None))
channel.set_permissions.assert_called_once()
- self.assertFalse(channel.set_permissions.call_args.kwargs['overwrite'].send_messages)
+ self.assertFalse(channel.set_permissions.call_args.kwargs['send_messages'])
async def test_silence_private_notifier(self):
"""Channel should be added to notifier with `persistent` set to `True`, and the other way around."""
@@ -175,7 +175,7 @@ class SilenceTests(unittest.IsolatedAsyncioTestCase):
channel = MockTextChannel(overwrites_for=Mock(return_value=perm_overwrite))
self.assertTrue(await self.cog._unsilence(channel))
channel.set_permissions.assert_called_once()
- self.assertTrue(channel.set_permissions.call_args.kwargs['overwrite'].send_messages)
+ self.assertTrue(channel.set_permissions.call_args.kwargs['send_messages'])
@mock.patch.object(Silence, "notifier", create=True)
async def test_unsilence_private_removed_notifier(self, notifier):