aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-06-11 08:45:29 +0300
committerGravatar GitHub <[email protected]>2020-06-11 08:45:29 +0300
commit70072a5f73a06198f77e5e19f95dc8dfafd37258 (patch)
treeceae94398fa503f06a359ca8c4b7ed940f7a307a /tests/helpers.py
parentFiltering: Add user avatar thumbnail to nickname alert embed (diff)
parentMerge pull request #910 from python-discord/bug/backend/906/converter-year-range (diff)
Merge branch 'master' into bad-words-nick
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]}