aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bot
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2020-05-27 13:27:34 +0200
committerGravatar Leon Sandøy <[email protected]>2020-05-27 13:27:34 +0200
commitdb0a384e91a463ff9668ab4f9ea5268aa332ab2d (patch)
tree65ecc6fe8f0b6bc3dd053926da1ebef769b3ddea /tests/bot
parentMerge branch 'master' into moderation_commands_in_modmail_category (diff)
Remove the now deprecated in_channel_check.
This check was no longer being used anywhere, having been replaced by in_whitelist_check.
Diffstat (limited to 'tests/bot')
-rw-r--r--tests/bot/utils/test_checks.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/bot/utils/test_checks.py b/tests/bot/utils/test_checks.py
index 9610771e5..d572b6299 100644
--- a/tests/bot/utils/test_checks.py
+++ b/tests/bot/utils/test_checks.py
@@ -41,11 +41,3 @@ class ChecksTests(unittest.TestCase):
role_id = 42
self.ctx.author.roles.append(MockRole(id=role_id))
self.assertTrue(checks.without_role_check(self.ctx, role_id + 10))
-
- def test_in_channel_check_for_correct_channel(self):
- self.ctx.channel.id = 42
- self.assertTrue(checks.in_channel_check(self.ctx, *[42]))
-
- def test_in_channel_check_for_incorrect_channel(self):
- self.ctx.channel.id = 42 + 10
- self.assertFalse(checks.in_channel_check(self.ctx, *[42]))