diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/bot/cogs/sync/test_base.py | 13 | 
1 files changed, 9 insertions, 4 deletions
| diff --git a/tests/bot/cogs/sync/test_base.py b/tests/bot/cogs/sync/test_base.py index 43d72dda9..2d682faad 100644 --- a/tests/bot/cogs/sync/test_base.py +++ b/tests/bot/cogs/sync/test_base.py @@ -143,16 +143,21 @@ class SyncerConfirmationTests(unittest.TestCase):      def test_reaction_check_for_valid_emoji_and_authors(self):          """Should return True if authors are identical or are a bot and a core dev, respectively."""          user_subtests = ( -            (helpers.MockMember(id=77), helpers.MockMember(id=77)), +            ( +                helpers.MockMember(id=77), +                helpers.MockMember(id=77), +                "identical users", +            ),              (                  helpers.MockMember(id=77, bot=True),                  helpers.MockMember(id=43, roles=[self.core_dev_role]), -            ) +                "bot author and core-dev reactor", +            ),          )          for emoji in self.syncer._REACTION_EMOJIS: -            for author, user in user_subtests: -                with self.subTest(author=author, user=user, emoji=emoji): +            for author, user, msg in user_subtests: +                with self.subTest(author=author, user=user, emoji=emoji, msg=msg):                      message, reaction = self.get_message_reaction(emoji)                      ret_val = self.syncer._reaction_check(author, message, reaction, user) | 
