aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-06-13 08:44:56 +0300
committerGravatar GitHub <[email protected]>2020-06-13 08:44:56 +0300
commitef67747e59892d1307246bcad4d32e245098ff58 (patch)
tree878d020bc090ec45b582d6c579aad756f5a3b5de /tests
parentJam Tests: Fix wrong function name and convert them to mocks (diff)
Jam Tests: Fix `test_duplicate_member_provided` assertions
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/cogs/test_jams.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/bot/cogs/test_jams.py b/tests/bot/cogs/test_jams.py
index a66658134..2f2cb4695 100644
--- a/tests/bot/cogs/test_jams.py
+++ b/tests/bot/cogs/test_jams.py
@@ -39,10 +39,12 @@ class JamCreateTeamTests(unittest.IsolatedAsyncioTestCase):
async def test_duplicate_members_provided(self):
"""Should `ctx.send` and exit early because duplicate members provided and total there is only 1 member."""
+ self.cog.create_channels = AsyncMock()
+ self.cog.add_roles = AsyncMock()
member = MockMember()
await self.cog.createteam(*self.default_args, (member for _ in range(5)))
self.ctx.send.assert_awaited_once()
- self.cog.create_channels.assert_now_awaited()
+ self.cog.create_channels.assert_not_awaited()
self.cog.add_roles.assert_not_awaited()
async def test_category_dont_exist(self):