diff options
author | 2020-05-31 18:43:17 +0200 | |
---|---|---|
committer | 2020-05-31 18:43:17 +0200 | |
commit | a910afd10e15df10448a2cdfa3c3b36cc6a4ec77 (patch) | |
tree | 5e569323c5cc3c516f5eca5933bd4ef87e834b67 /tests/helpers.py | |
parent | Move counting of channels to a separate method (diff) | |
parent | Merge pull request #973 from python-discord/kwzrd/improve-free (diff) |
Merge branch 'master' into staff_count_server
Diffstat (limited to 'tests/helpers.py')
-rw-r--r-- | tests/helpers.py | 4 |
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]} |