diff options
author | 2020-01-31 13:54:20 -0800 | |
---|---|---|
committer | 2020-02-12 10:07:56 -0800 | |
commit | 3c0937de8641092100acc6424f4455c49d2e7855 (patch) | |
tree | a6d165cb04902498cbdda3b6820c636d4713f7a9 | |
parent | Sync tests: create a base TestCase class for Sync cog tests (diff) |
Sync tests: create a test case for listener tests
-rw-r--r-- | tests/bot/cogs/sync/test_cog.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/bot/cogs/sync/test_cog.py b/tests/bot/cogs/sync/test_cog.py index c6009b2e5..d71366791 100644 --- a/tests/bot/cogs/sync/test_cog.py +++ b/tests/bot/cogs/sync/test_cog.py @@ -132,3 +132,10 @@ class SyncCogTests(SyncCogTestCase): """A PATCH request should be sent and the error raised if it's not a 404.""" with self.assertRaises(ResponseCodeError): self.patch_user_helper(self.response_error(500)) + + +class SyncCogListenerTests(SyncCogTestCase): + """Tests for the listeners of the Sync cog.""" + def setUp(self): + super().setUp() + self.cog.patch_user = helpers.AsyncMock(spec_set=self.cog.patch_user) |