aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2020-03-11 18:06:53 +0100
committerGravatar Numerlor <[email protected]>2020-03-11 18:06:53 +0100
commitd9c904164a9e54750ce8ee36535bceacfc4800f5 (patch)
treedaeb1f1576850cb4359b631548f928bf45b7ab12 /tests
parentAdd tests for `add_channel`. (diff)
Remove `_current_loop` from setup.
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/cogs/moderation/test_silence.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/bot/cogs/moderation/test_silence.py b/tests/bot/cogs/moderation/test_silence.py
index be5b8e550..2e04dc407 100644
--- a/tests/bot/cogs/moderation/test_silence.py
+++ b/tests/bot/cogs/moderation/test_silence.py
@@ -35,14 +35,13 @@ class SilenceNotifierTests(unittest.IsolatedAsyncioTestCase):
self.notifier = SilenceNotifier(self.alert_channel)
self.notifier.stop = self.notifier_stop_mock = Mock()
self.notifier.start = self.notifier_start_mock = Mock()
- self.notifier._current_loop = self.current_loop_mock = Mock()
def test_add_channel_adds_channel(self):
"""Channel in FirstHash with current loop is added to internal set."""
channel = Mock()
with mock.patch.object(self.notifier, "_silenced_channels") as silenced_channels:
self.notifier.add_channel(channel)
- silenced_channels.add.assert_called_with(FirstHash(channel, self.current_loop_mock))
+ silenced_channels.add.assert_called_with(FirstHash(channel, self.notifier._current_loop))
def test_add_channel_starts_loop(self):
"""Loop is started if `_silenced_channels` was empty."""