aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-05-23 18:08:29 +0300
committerGravatar ks129 <[email protected]>2020-06-11 08:59:42 +0300
commita63545510f392cf3e36e310b68792177a178b769 (patch)
treed284184c173b2a94273265e704a0742768b9b98e /tests
parentJam Tests: Created test that make sure when category exist, don't create (diff)
Jam Tests: Created test for creating text channel for team
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/cogs/test_jams.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/bot/cogs/test_jams.py b/tests/bot/cogs/test_jams.py
index 1ce71a942..9d26628ff 100644
--- a/tests/bot/cogs/test_jams.py
+++ b/tests/bot/cogs/test_jams.py
@@ -58,3 +58,8 @@ class JamCreateTeamTests(unittest.IsolatedAsyncioTestCase):
await self.cog.createteam(self.cog, self.ctx, "bar", (MockMember() for _ in range(5)))
utils_mock.get.assert_called_once()
self.ctx.guild.create_category_channel.assert_not_awaited()
+
+ async def test_team_text_channel_creation(self):
+ """Should create text channel for team."""
+ await self.cog.createteam(self.cog, self.ctx, "bar", (MockMember() for _ in range(5)))
+ self.ctx.guild.create_text_channel.assert_awaited_once()