diff options
| author | 2020-05-23 18:08:29 +0300 | |
|---|---|---|
| committer | 2020-06-11 08:59:42 +0300 | |
| commit | a63545510f392cf3e36e310b68792177a178b769 (patch) | |
| tree | d284184c173b2a94273265e704a0742768b9b98e /tests | |
| parent | Jam 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.py | 5 |
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() |