aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks123 <[email protected]>2020-04-02 13:37:58 +0300
committerGravatar ks123 <[email protected]>2020-04-02 13:37:58 +0300
commit5064fc717cd119f78af4ea146408c4a02a23f42b (patch)
tree4966618fafe9f921e3061c8cf0707e5032074f74
parent(Reddit, discord.py 1.3.x Migration): Replaced `asyncio.sleep` with `discord.... (diff)
(Snekbox Fix, discord.py 1.3.x Migration): Applied one reaction clear to tests.
-rw-r--r--tests/bot/cogs/test_snekbox.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/bot/cogs/test_snekbox.py b/tests/bot/cogs/test_snekbox.py
index 1dec0ccaf..1443f7cdc 100644
--- a/tests/bot/cogs/test_snekbox.py
+++ b/tests/bot/cogs/test_snekbox.py
@@ -296,7 +296,7 @@ class SnekboxTests(unittest.IsolatedAsyncioTestCase):
)
)
ctx.message.add_reaction.assert_called_once_with(snekbox.REEVAL_EMOJI)
- ctx.message.clear_reactions.assert_called_once()
+ ctx.message.clear_reaction.assert_called_once_with(snekbox.REEVAL_EMOJI)
response.delete.assert_called_once()
async def test_continue_eval_does_not_continue(self):
@@ -305,7 +305,7 @@ class SnekboxTests(unittest.IsolatedAsyncioTestCase):
actual = await self.cog.continue_eval(ctx, MockMessage())
self.assertEqual(actual, None)
- ctx.message.clear_reactions.assert_called_once()
+ ctx.message.clear_reaction.assert_called_once_with(snekbox.REEVAL_EMOJI)
async def test_get_code(self):
"""Should return 1st arg (or None) if eval cmd in message, otherwise return full content."""