aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-01-04 10:25:33 -0800
committerGravatar MarkKoz <[email protected]>2020-02-12 10:07:50 -0800
commit5024a75004f8d9f4726017af74cace6c1ab6c501 (patch)
treebc43f0b0e83c66b79eb895830adacaae3550daf3
parentSync tests: fix wait_until_ready in duck pond tests (diff)
Sync tests: test instantiation fails without abstract methods
-rw-r--r--tests/bot/cogs/sync/test_base.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/bot/cogs/sync/test_base.py b/tests/bot/cogs/sync/test_base.py
new file mode 100644
index 000000000..79ec86fee
--- /dev/null
+++ b/tests/bot/cogs/sync/test_base.py
@@ -0,0 +1,17 @@
+import unittest
+
+from bot.cogs.sync.syncers import Syncer
+from tests import helpers
+
+
+class SyncerBaseTests(unittest.TestCase):
+ """Tests for the syncer base class."""
+
+ def setUp(self):
+ self.bot = helpers.MockBot()
+
+ def test_instantiation_fails_without_abstract_methods(self):
+ """The class must have abstract methods implemented."""
+ with self.assertRaisesRegex(TypeError, "Can't instantiate abstract class"):
+ Syncer(self.bot)
+