aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2020-05-18EH Tests: Added test for `CommandInvokeError` handling on handlerGravatar ks129-0/+22
2020-05-18EH Tests: Added test for `CommandOnCooldown` handling on handlerGravatar ks129-0/+8
2020-05-18EH Tests: Added test for `CheckFailure` handling on handlerGravatar ks129-0/+9
2020-05-18EH Tests: Added test for `UserInputError` handling on handlerGravatar ks129-0/+9
2020-05-18EH Tests: Added another test for `CommandNotFound` error handlingGravatar ks129-0/+17
Added test for case when `Context.invoked_from_error_handler` is `True`
2020-05-18Test Helpers: Added new attribute to `MockContext`Gravatar ks129-0/+2
Added `invoked_from_error_handler` attribute that is `False` default.
2020-05-18Error Handler: Changed `CommandNotFound` error check for testingGravatar ks129-1/+1
Replaced `hasattr` with `getattr` for unit tests
2020-05-18EH Tests: Remove class member `cog` + other small changesGravatar ks129-14/+15
- Added `assertIsNone` to `test_error_handler_already_handled`. - Removed `ErrorHandlerTests.cog`, moved it to each test recreation.
2020-05-18EH Tests: Created test for `CommandNotFound` error when call isn't by EHGravatar ks129-0/+49