diff options
| author | 2020-01-05 11:23:55 -0800 | |
|---|---|---|
| committer | 2020-02-12 10:07:51 -0800 | |
| commit | 3298312ad182dd1a8a5c9596d7bdc1d6f4905ebf (patch) | |
| tree | 04170c4bad6c36a9ebb6902b9b245e02067b3478 | |
| parent | Sync tests: test _send_prompt sends a new message if one isn't given (diff) | |
Sync tests: test _send_prompt adds reactions
| -rw-r--r-- | tests/bot/cogs/sync/test_base.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/bot/cogs/sync/test_base.py b/tests/bot/cogs/sync/test_base.py index f4ea33823..e509b3c98 100644 --- a/tests/bot/cogs/sync/test_base.py +++ b/tests/bot/cogs/sync/test_base.py @@ -77,3 +77,11 @@ class SyncerBaseTests(unittest.TestCase): mock_channel.send.assert_called_once() self.assertIn(self.syncer._CORE_DEV_MENTION, mock_channel.send.call_args[0][0]) + + def test_send_prompt_adds_reactions(self): + """The message should have reactions for confirmation added.""" + msg = helpers.MockMessage() + asyncio.run(self.syncer._send_prompt(msg)) + + calls = [mock.call(emoji) for emoji in self.syncer._REACTION_EMOJIS] + msg.add_reaction.assert_has_calls(calls) |