aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-05-23 18:39:13 +0300
committerGravatar ks129 <[email protected]>2020-06-11 08:59:43 +0300
commit76ad4d141027f6351e2feedc466c8acc805f671d (patch)
tree8faafa5bc3bbae01904ad12bf9875c4eb4784f9b /tests
parentJam Tests: Create test for team jam roles adding (diff)
Jam Tests: Create test for successful `ctx.send` calling
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/cogs/test_jams.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/bot/cogs/test_jams.py b/tests/bot/cogs/test_jams.py
index 16caa98c6..7db66ff11 100644
--- a/tests/bot/cogs/test_jams.py
+++ b/tests/bot/cogs/test_jams.py
@@ -120,3 +120,9 @@ class JamCreateTeamTests(unittest.IsolatedAsyncioTestCase):
leader.add_roles.assert_any_await(leader_role)
for member in members:
member.add_roles.assert_any_await(jam_role)
+
+ async def test_result_sending(self):
+ """Should call `ctx.send` when everything go right."""
+ self.ctx.reset_mock()
+ await self.cog.createteam(self.cog, self.ctx, "foo", (MockMember() for _ in range(5)))
+ self.ctx.send.assert_awaited_once()