aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2020-06-06 01:58:19 +0200
committerGravatar GitHub <[email protected]>2020-06-06 01:58:19 +0200
commit2f91cfad0bc33e086ffefacb4884b865bca18111 (patch)
tree69868605d8d0af0e9bb6802aa396a89c43c9fd2e /tests/helpers.py
parentStats: Implement rules stats (diff)
parentMerge pull request #970 from python-discord/staff_count_server (diff)
Merge branch 'master' into rules-stats
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]}