aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-07-17 10:08:05 -0700
committerGravatar MarkKoz <[email protected]>2020-07-31 22:58:05 -0700
commitda33c330a02f2ff10838d0827e8c26a045729449 (patch)
treeceea59adb489d976d5598fa1a02192c22131cf7d /tests
parentDecorators: more accurate return type for checks (diff)
Decorators: clean up imports
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/test_decorators.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/bot/test_decorators.py b/tests/bot/test_decorators.py
index 3d450caa0..22e93c1c4 100644
--- a/tests/bot/test_decorators.py
+++ b/tests/bot/test_decorators.py
@@ -67,7 +67,7 @@ class InWhitelistTests(unittest.TestCase):
for test_case in test_cases:
# patch `commands.check` with a no-op lambda that just returns the predicate passed to it
# so we can test the predicate that was generated from the specified kwargs.
- with unittest.mock.patch("bot.decorators.commands.check", new=lambda predicate: predicate):
+ with unittest.mock.patch("bot.decorators.check", new=lambda predicate: predicate):
predicate = in_whitelist(**test_case.kwargs)
with self.subTest(test_description=test_case.description):
@@ -139,7 +139,7 @@ class InWhitelistTests(unittest.TestCase):
# patch `commands.check` with a no-op lambda that just returns the predicate passed to it
# so we can test the predicate that was generated from the specified kwargs.
- with unittest.mock.patch("bot.decorators.commands.check", new=lambda predicate: predicate):
+ with unittest.mock.patch("bot.decorators.check", new=lambda predicate: predicate):
predicate = in_whitelist(**test_case.kwargs)
with self.subTest(test_description=test_case.description):