diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/bot/cogs/sync/test_cog.py | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/tests/bot/cogs/sync/test_cog.py b/tests/bot/cogs/sync/test_cog.py index bdb7aeb63..c6009b2e5 100644 --- a/tests/bot/cogs/sync/test_cog.py +++ b/tests/bot/cogs/sync/test_cog.py @@ -31,8 +31,8 @@ class SyncExtensionTests(unittest.TestCase):          bot.add_cog.assert_called_once() -class SyncCogTests(unittest.TestCase): -    """Tests for the Sync cog.""" +class SyncCogTestCase(unittest.TestCase): +    """Base class for Sync cog tests. Sets up patches for syncers."""      def setUp(self):          self.bot = helpers.MockBot() @@ -65,6 +65,10 @@ class SyncCogTests(unittest.TestCase):          return ResponseCodeError(response) + +class SyncCogTests(SyncCogTestCase): +    """Tests for the Sync cog.""" +      @mock.patch.object(sync.Sync, "sync_guild")      def test_sync_cog_init(self, sync_guild):          """Should instantiate syncers and run a sync for the guild.""" | 
