diff options
author | 2022-02-21 02:14:07 +0000 | |
---|---|---|
committer | 2022-03-05 23:39:00 +0000 | |
commit | 960619c23300c56c8aaa454edc7241e2badf80ad (patch) | |
tree | 8f4e42a5bb46c4882a23609b298cb23157424d23 /tests/base.py | |
parent | Migrate from Discord.py to disnake (diff) |
Update all references of discord.py to disnake
All of the tag content is out of scope for this PR.
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) |