aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py
diff options
context:
space:
mode:
authorGravatar Mark <[email protected]>2020-05-30 11:00:16 -0700
committerGravatar GitHub <[email protected]>2020-05-30 11:00:16 -0700
commit202db5acab3ca3da8c481b4b8d35caf431ac414f (patch)
treee9c099ec814983cf06463c2e41122bbebbde910e /tests/helpers.py
parentMerge pull request #930 from MrGrote/test_antimalware (diff)
parentMerge branch 'master' into ban-kick-reason-length (diff)
Merge pull request #864 from ks129/ban-kick-reason-length
Ban and kick reason length fix
Diffstat (limited to 'tests/helpers.py')
-rw-r--r--tests/helpers.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/helpers.py b/tests/helpers.py
index 13283339b..faa839370 100644
--- a/tests/helpers.py
+++ b/tests/helpers.py
@@ -208,6 +208,10 @@ class MockRole(CustomMockMixin, unittest.mock.Mock, ColourMixin, HashableMixin):
"""Simplified position-based comparisons similar to those of `discord.Role`."""
return self.position < other.position
+ def __ge__(self, other):
+ """Simplified position-based comparisons similar to those of `discord.Role`."""
+ return self.position >= other.position
+
# Create a Member instance to get a realistic Mock of `discord.Member`
member_data = {'user': 'lemon', 'roles': [1]}