diff options
author | 2022-01-13 17:35:05 -0500 | |
---|---|---|
committer | 2022-01-13 17:35:05 -0500 | |
commit | 66f139155e40093c55edd734b116bae865c7ed0c (patch) | |
tree | 4ab8969e7b384c80ef2f2d2c2e4c59ca455bc33b /tests/base.py | |
parent | chore: Update tests to correspond with the timeit command (diff) | |
parent | empty commit for CI (diff) |
chore: Fix merge conflicts
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) |