diff options
| author | 2021-12-03 11:28:28 +0100 | |
|---|---|---|
| committer | 2021-12-03 11:28:28 +0100 | |
| commit | e30b17a93aeea573d881d226da6bae318b694dbc (patch) | |
| tree | 19b9369c09fb1615a05661b5ca48366a129d8b88 /tests | |
| parent | Redirect subscribe command output to bot commands (diff) | |
| parent | Merge pull request #1986 from onerandomusername/patch-3 (diff) | |
Merge branch 'main' into subscribe-redirect
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/bot/exts/backend/test_error_handler.py | 32 | 
1 files changed, 0 insertions, 32 deletions
| diff --git a/tests/bot/exts/backend/test_error_handler.py b/tests/bot/exts/backend/test_error_handler.py index 462f718e6..d12329b1f 100644 --- a/tests/bot/exts/backend/test_error_handler.py +++ b/tests/bot/exts/backend/test_error_handler.py @@ -572,38 +572,6 @@ class IndividualErrorHandlerTests(unittest.IsolatedAsyncioTestCase):                  push_scope_mock.set_extra.has_calls(set_extra_calls) -class OtherErrorHandlerTests(unittest.IsolatedAsyncioTestCase): -    """Other `ErrorHandler` tests.""" - -    def setUp(self): -        self.bot = MockBot() -        self.ctx = MockContext() - -    async def test_get_help_command_command_specified(self): -        """Should return coroutine of help command of specified command.""" -        self.ctx.command = "foo" -        result = ErrorHandler.get_help_command(self.ctx) -        expected = self.ctx.send_help("foo") -        self.assertEqual(result.__qualname__, expected.__qualname__) -        self.assertEqual(result.cr_frame.f_locals, expected.cr_frame.f_locals) - -        # Await coroutines to avoid warnings -        await result -        await expected - -    async def test_get_help_command_no_command_specified(self): -        """Should return coroutine of help command.""" -        self.ctx.command = None -        result = ErrorHandler.get_help_command(self.ctx) -        expected = self.ctx.send_help() -        self.assertEqual(result.__qualname__, expected.__qualname__) -        self.assertEqual(result.cr_frame.f_locals, expected.cr_frame.f_locals) - -        # Await coroutines to avoid warnings -        await result -        await expected - -  class ErrorHandlerSetupTests(unittest.TestCase):      """Tests for `ErrorHandler` `setup` function.""" | 
