aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar B0nes <[email protected]>2025-06-03 22:52:23 +0100
committerGravatar B0nes <[email protected]>2025-06-30 23:16:42 +0100
commitdd444feeac190c29906531629eab53360526502f (patch)
tree860c1bc632dbde2e5cfb80a96383f50566041a98
parentWIP: Added tests for slowmode command with duration argument. (diff)
Fix issue with unawaited coroutine in test
-rw-r--r--tests/bot/exts/moderation/test_slowmode.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bot/exts/moderation/test_slowmode.py b/tests/bot/exts/moderation/test_slowmode.py
index c9973703b..62246510b 100644
--- a/tests/bot/exts/moderation/test_slowmode.py
+++ b/tests/bot/exts/moderation/test_slowmode.py
@@ -132,7 +132,7 @@ class SlowmodeTests(RedisTestCase):
"""Schedule slowmode to be reverted"""
mock_now = datetime.datetime(2025, 6, 2, 12, 0, 0, tzinfo=datetime.UTC)
mock_datetime.now.return_value = mock_now
- self.cog.scheduler=mock.MagicMock()
+ self.cog.scheduler=mock.MagicMock(wraps=self.cog.scheduler)
text_channel = MockTextChannel(name="python-general", slowmode_delay=2, id=123)
await self.cog.set_slowmode(