diff options
| author | 2021-10-17 20:35:32 +0300 | |
|---|---|---|
| committer | 2021-10-17 20:35:32 +0300 | |
| commit | 2abab682e0a785ebc4b1c5d8cca7ffe0eb6e8dc8 (patch) | |
| tree | b043f6cc5936a86dde0ee4a692434b772bb4eb94 /tests/base.py | |
| parent | Indentation, type-hint, and documentation fixes (diff) | |
| parent | Merge pull request #1887 from python-discord/fix-guild-attr-error (diff) | |
Merge branch 'main' into cleanrework
Diffstat (limited to 'tests/base.py')
| -rw-r--r-- | tests/base.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/base.py b/tests/base.py index d99b9ac31..5e304ea9d 100644 --- a/tests/base.py +++ b/tests/base.py @@ -6,6 +6,7 @@ from typing import Dict import discord from discord.ext import commands +from bot.log import get_logger from tests import helpers @@ -42,7 +43,7 @@ class LoggingTestsMixin: manager when we're testing under the assumption that no log records will be emitted. """ if not isinstance(logger, logging.Logger): - logger = logging.getLogger(logger) + logger = get_logger(logger) if level: level = logging._nameToLevel.get(level, level) @@ -102,4 +103,4 @@ class CommandTestCase(unittest.IsolatedAsyncioTestCase): with self.assertRaises(commands.MissingPermissions) as cm: await cmd.can_run(ctx) - self.assertCountEqual(permissions.keys(), cm.exception.missing_perms) + self.assertCountEqual(permissions.keys(), cm.exception.missing_permissions) |