diff options
| author | 2020-05-19 10:06:01 +0300 | |
|---|---|---|
| committer | 2020-05-19 10:06:01 +0300 | |
| commit | decd712419d2daecd15d29efdeb6d74a64ec7946 (patch) | |
| tree | dbefe4bfef4b639316018457512cabd32c21906c | |
| parent | EH Tests: Create test for `handle_check_failure` (diff) | |
EH Tests: Merge test classes
| -rw-r--r-- | tests/bot/cogs/test_error_handler.py | 15 | 
1 files changed, 4 insertions, 11 deletions
diff --git a/tests/bot/cogs/test_error_handler.py b/tests/bot/cogs/test_error_handler.py index b12d21f75..32c7c4f46 100644 --- a/tests/bot/cogs/test_error_handler.py +++ b/tests/bot/cogs/test_error_handler.py @@ -304,8 +304,8 @@ class TryGetTagTests(unittest.IsolatedAsyncioTestCase):          self.assertIsNone(await self.cog.try_get_tag(self.ctx)) -class UserInputErrorHandlerTests(unittest.IsolatedAsyncioTestCase): -    """Tests for `handle_user_input_error`.""" +class IndividualErrorHandlerTests(unittest.IsolatedAsyncioTestCase): +    """Individual error categories handler tests."""      def setUp(self):          self.bot = MockBot() @@ -348,15 +348,8 @@ class UserInputErrorHandlerTests(unittest.IsolatedAsyncioTestCase):                  self.ctx.send.assert_awaited_once()                  if case["call_prepared"]:                      self.ctx.send_help.assert_awaited_once() - - -class CheckFailureHandlingTests(unittest.IsolatedAsyncioTestCase): -    """Tests for `handle_check_failure`.""" - -    def setUp(self): -        self.bot = MockBot() -        self.ctx = MockContext(bot=self.bot) -        self.cog = ErrorHandler(self.bot) +                else: +                    self.ctx.send_help.assert_not_awaited()      async def test_handle_check_failure_errors(self):          """Should await `ctx.send` when error is check failure."""  |