aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-06-11 11:39:46 +0300
committerGravatar ks129 <[email protected]>2020-06-11 11:39:46 +0300
commit4af2be7310141ab3ddc34a2184366c0d8212cdd5 (patch)
treefc87055c51382e89b71242bb832963fe9b9a336a
parentJam Tests: Merge text and voice channel creation tests (diff)
Jam Tests: Simplify and update `test_category_channel_exist`
-rw-r--r--tests/bot/cogs/test_jams.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/bot/cogs/test_jams.py b/tests/bot/cogs/test_jams.py
index 54f906ed9..ae3e35dbb 100644
--- a/tests/bot/cogs/test_jams.py
+++ b/tests/bot/cogs/test_jams.py
@@ -58,9 +58,7 @@ class JamCreateTeamTests(unittest.IsolatedAsyncioTestCase):
async def test_category_channel_exist(self):
"""Should not try to create category channel."""
- self.utils_mock.return_value = "foo"
- await self.cog.createteam(self.cog, self.ctx, "bar", (MockMember() for _ in range(5)))
- self.utils_mock.get.assert_called_once()
+ await self.cog.get_category(self.ctx)
self.ctx.guild.create_category_channel.assert_not_awaited()
async def test_channel_overwrites(self):