diff options
author | 2022-03-05 16:30:04 -0800 | |
---|---|---|
committer | 2022-03-05 16:30:04 -0800 | |
commit | 29a8c1f4a3a06a837ff7e492ef1661f5813350a6 (patch) | |
tree | f24a93f1868844fd957c700274971ee2a12a15a5 /tests/base.py | |
parent | Add more expiration details to infraction DMs (diff) | |
parent | Merge pull request #2103 from python-discord/disnake-migration (diff) |
Merge main into feat/mod/1664/resend-infraction
Diffstat (limited to 'tests/base.py')
-rw-r--r-- | tests/base.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/base.py b/tests/base.py index 5e304ea9d..dea7dd678 100644 --- a/tests/base.py +++ b/tests/base.py @@ -3,8 +3,8 @@ import unittest from contextlib import contextmanager from typing import Dict -import discord -from discord.ext import commands +import disnake +from disnake.ext import commands from bot.log import get_logger from tests import helpers @@ -80,7 +80,7 @@ class LoggingTestsMixin: class CommandTestCase(unittest.IsolatedAsyncioTestCase): - """TestCase with additional assertions that are useful for testing Discord commands.""" + """TestCase with additional assertions that are useful for testing disnake commands.""" async def assertHasPermissionsCheck( # noqa: N802 self, @@ -98,7 +98,7 @@ class CommandTestCase(unittest.IsolatedAsyncioTestCase): permissions = {k: not v for k, v in permissions.items()} ctx = helpers.MockContext() - ctx.channel.permissions_for.return_value = discord.Permissions(**permissions) + ctx.channel.permissions_for.return_value = disnake.Permissions(**permissions) with self.assertRaises(commands.MissingPermissions) as cm: await cmd.can_run(ctx) |