aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-01-26 18:27:06 -0800
committerGravatar MarkKoz <[email protected]>2020-02-12 10:07:55 -0800
commit69f59078394193f615753b0a20d74982e58d5c0f (patch)
tree985499ec065851b27559cc9148b9a9d5bd6c7200 /tests
parentSync tests: ignore coverage for abstract methods (diff)
Sync tests: test the extension setup
The Sync cog should be added.
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/cogs/sync/test_cog.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/bot/cogs/sync/test_cog.py b/tests/bot/cogs/sync/test_cog.py
new file mode 100644
index 000000000..fb0f044b0
--- /dev/null
+++ b/tests/bot/cogs/sync/test_cog.py
@@ -0,0 +1,15 @@
+import unittest
+
+from bot.cogs import sync
+from tests import helpers
+
+
+class SyncExtensionTests(unittest.TestCase):
+ """Tests for the sync extension."""
+
+ @staticmethod
+ def test_extension_setup():
+ """The Sync cog should be added."""
+ bot = helpers.MockBot()
+ sync.setup(bot)
+ bot.add_cog.assert_called_once()