aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/bot/cogs/sync/test_base.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/bot/cogs/sync/test_base.py b/tests/bot/cogs/sync/test_base.py
index 79ec86fee..d38c90410 100644
--- a/tests/bot/cogs/sync/test_base.py
+++ b/tests/bot/cogs/sync/test_base.py
@@ -4,11 +4,20 @@ from bot.cogs.sync.syncers import Syncer
from tests import helpers
+class TestSyncer(Syncer):
+ """Syncer subclass with mocks for abstract methods for testing purposes."""
+
+ name = "test"
+ _get_diff = helpers.AsyncMock()
+ _sync = helpers.AsyncMock()
+
+
class SyncerBaseTests(unittest.TestCase):
"""Tests for the syncer base class."""
def setUp(self):
self.bot = helpers.MockBot()
+ self.syncer = TestSyncer(self.bot)
def test_instantiation_fails_without_abstract_methods(self):
"""The class must have abstract methods implemented."""