diff options
author | 2020-06-13 08:39:35 +0300 | |
---|---|---|
committer | 2020-06-13 08:39:35 +0300 | |
commit | 95ae613173bb87719155a95494fe448a45a2d6bc (patch) | |
tree | 3c6da30bca9e5018188dba4aa9eda867f0fe7826 /tests | |
parent | Jam Tests: Simplify and make tests more secure (diff) |
Jam Tests: Fix wrong function name and convert them to mocks
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bot/cogs/test_jams.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/bot/cogs/test_jams.py b/tests/bot/cogs/test_jams.py index 2d2eebabf..a66658134 100644 --- a/tests/bot/cogs/test_jams.py +++ b/tests/bot/cogs/test_jams.py @@ -124,9 +124,11 @@ class JamCreateTeamTests(unittest.IsolatedAsyncioTestCase): async def test_result_sending(self): """Should call `ctx.send` when everything goes right.""" + self.cog.create_channels = AsyncMock() + self.cog.add_roles = AsyncMock() members = [MockMember() for _ in range(5)] await self.cog.createteam(self.cog, self.ctx, "foo", members) - self.cog.create_channel.assert_awaited_once() + self.cog.create_channels.assert_awaited_once() self.cog.add_roles.assert_awaited_once() self.ctx.send.assert_awaited_once() |