diff options
author | 2020-02-06 13:11:37 -0800 | |
---|---|---|
committer | 2020-02-12 10:07:57 -0800 | |
commit | 0e7211e80c76973e781db3bbea82a54e6a9ebb1c (patch) | |
tree | 2727c1601f6fcafb6e268612d1d0bd1882a3e4a9 /tests | |
parent | Sync tests: test sync roles command (diff) |
Sync tests: test sync users command
sync() should be called on the UserSyncer.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bot/cogs/sync/test_cog.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/bot/cogs/sync/test_cog.py b/tests/bot/cogs/sync/test_cog.py index 4de058965..f21d1574b 100644 --- a/tests/bot/cogs/sync/test_cog.py +++ b/tests/bot/cogs/sync/test_cog.py @@ -294,3 +294,10 @@ class SyncCogCommandTests(SyncCogTestCase): asyncio.run(self.cog.sync_roles_command.callback(self.cog, ctx)) self.cog.role_syncer.sync.assert_called_once_with(ctx.guild, ctx) + + def test_sync_users_command(self): + """sync() should be called on the UserSyncer.""" + ctx = helpers.MockContext() + asyncio.run(self.cog.sync_users_command.callback(self.cog, ctx)) + + self.cog.user_syncer.sync.assert_called_once_with(ctx.guild, ctx) |