aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-07-22 16:27:02 -0700
committerGravatar MarkKoz <[email protected]>2020-07-22 16:39:26 -0700
commitddba3f5fcfbda0f72baa3f15055c8a92e94c6d88 (patch)
tree3a6fc2eccffce1d7a56f9f0d7c53702afce657d9 /tests
parentJam tests: add subtests to non-existent category test (diff)
Jam tests: assert equality of new category
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/cogs/test_jams.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/bot/cogs/test_jams.py b/tests/bot/cogs/test_jams.py
index e6b2ac588..a76a8a051 100644
--- a/tests/bot/cogs/test_jams.py
+++ b/tests/bot/cogs/test_jams.py
@@ -80,13 +80,14 @@ class JamCreateTeamTests(unittest.IsolatedAsyncioTestCase):
self.guild.categories = categories
with self.subTest(categories=categories):
- await self.cog.get_category(self.guild)
+ actual_category = await self.cog.get_category(self.guild)
self.guild.create_category_channel.assert_awaited_once()
category_overwrites = self.guild.create_category_channel.call_args[1]["overwrites"]
self.assertFalse(category_overwrites[self.guild.default_role].read_messages)
self.assertTrue(category_overwrites[self.guild.me].read_messages)
+ self.assertEqual(self.guild.create_category_channel.return_value, actual_category)
async def test_category_channel_exist(self):
"""Should not try to create category channel."""