diff options
author | 2020-07-06 17:30:44 +0000 | |
---|---|---|
committer | 2020-07-06 17:30:44 +0000 | |
commit | cdeb41bfd283cb6cb1285993737e8e3abd5aea9f (patch) | |
tree | 16b7194472454f9b1cb843c50d6727ac1316b7eb | |
parent | Move slowmode cog to the moderation subpackage (diff) |
Fix imports in slowmode tests
-rw-r--r-- | tests/bot/cogs/test_slowmode.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/bot/cogs/test_slowmode.py b/tests/bot/cogs/test_slowmode.py index 65b1534cb..f442814c8 100644 --- a/tests/bot/cogs/test_slowmode.py +++ b/tests/bot/cogs/test_slowmode.py @@ -3,7 +3,7 @@ from unittest import mock from dateutil.relativedelta import relativedelta -from bot.cogs.slowmode import Slowmode +from bot.cogs.moderation.slowmode import Slowmode from bot.constants import Emojis from tests.helpers import MockBot, MockContext, MockTextChannel @@ -103,8 +103,8 @@ class SlowmodeTests(unittest.IsolatedAsyncioTestCase): f'{Emojis.check_mark} The slowmode delay for #meta has been reset to 0 seconds.' ) - @mock.patch("bot.cogs.slowmode.with_role_check") - @mock.patch("bot.cogs.slowmode.MODERATION_ROLES", new=(1, 2, 3)) + @mock.patch("bot.cogs.moderation.slowmode.with_role_check") + @mock.patch("bot.cogs.moderation.slowmode.MODERATION_ROLES", new=(1, 2, 3)) def test_cog_check(self, role_check): """Role check is called with `MODERATION_ROLES`""" self.cog.cog_check(self.ctx) |