diff options
author | 2020-01-10 11:46:18 -0800 | |
---|---|---|
committer | 2020-02-12 10:07:52 -0800 | |
commit | b43b0bc611a0ba7d7ee62bc94a11ac661772f3ca (patch) | |
tree | 3166116e870da2ad74999dbd031957f20e1e9337 /tests | |
parent | Sync: make the reaction check an instance method instead of nested (diff) |
Sync tests: create a test suite for confirmation tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bot/cogs/sync/test_base.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/bot/cogs/sync/test_base.py b/tests/bot/cogs/sync/test_base.py index af15b544b..ca344c865 100644 --- a/tests/bot/cogs/sync/test_base.py +++ b/tests/bot/cogs/sync/test_base.py @@ -4,8 +4,8 @@ from unittest import mock import discord -from bot.cogs.sync.syncers import Syncer from bot import constants +from bot.cogs.sync.syncers import Syncer from tests import helpers @@ -122,3 +122,11 @@ class SyncerSendPromptTests(unittest.TestCase): calls = [mock.call(emoji) for emoji in self.syncer._REACTION_EMOJIS] mock_message.add_reaction.assert_has_calls(calls) + + +class SyncerConfirmationTests(unittest.TestCase): + """Tests for waiting for a sync confirmation reaction on the prompt.""" + + def setUp(self): + self.bot = helpers.MockBot() + self.syncer = TestSyncer(self.bot) |