aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/bot/cogs/sync/test_cog.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/bot/cogs/sync/test_cog.py b/tests/bot/cogs/sync/test_cog.py
index 88c5e00b9..4de058965 100644
--- a/tests/bot/cogs/sync/test_cog.py
+++ b/tests/bot/cogs/sync/test_cog.py
@@ -285,3 +285,12 @@ class SyncCogListenerTests(SyncCogTestCase):
self.assertEqual(updated_information[api_field], api_value)
else:
self.cog.patch_user.assert_not_called()
+
+
+class SyncCogCommandTests(SyncCogTestCase):
+ def test_sync_roles_command(self):
+ """sync() should be called on the RoleSyncer."""
+ ctx = helpers.MockContext()
+ asyncio.run(self.cog.sync_roles_command.callback(self.cog, ctx))
+
+ self.cog.role_syncer.sync.assert_called_once_with(ctx.guild, ctx)