diff options
author | 2020-04-03 18:20:12 +0300 | |
---|---|---|
committer | 2020-04-03 18:20:12 +0300 | |
commit | ca4e21b1c7e8b537ac37f55b71eb29e09f16bf74 (patch) | |
tree | 529e8cdec7915cd9f18485ea6606444a9d56289e /tests | |
parent | (Silence Tests, discord.py 1.3.x Migrations): Removed `.callback` from comman... (diff) |
(Sync Cog Tests, discord.py 1.3.x Migrations): Removed `.callback` from commands calling.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bot/cogs/sync/test_cog.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/bot/cogs/sync/test_cog.py b/tests/bot/cogs/sync/test_cog.py index 81398c61f..a4745f7b4 100644 --- a/tests/bot/cogs/sync/test_cog.py +++ b/tests/bot/cogs/sync/test_cog.py @@ -344,14 +344,14 @@ class SyncCogCommandTests(SyncCogTestCase, CommandTestCase): async def test_sync_roles_command(self): """sync() should be called on the RoleSyncer.""" ctx = helpers.MockContext() - await self.cog.sync_roles_command.callback(self.cog, ctx) + await self.cog.sync_roles_command(self.cog, ctx) self.cog.role_syncer.sync.assert_called_once_with(ctx.guild, ctx) async def test_sync_users_command(self): """sync() should be called on the UserSyncer.""" ctx = helpers.MockContext() - await self.cog.sync_users_command.callback(self.cog, ctx) + await self.cog.sync_users_command(self.cog, ctx) self.cog.user_syncer.sync.assert_called_once_with(ctx.guild, ctx) |