aboutsummaryrefslogtreecommitdiffstats
path: root/tests (follow)
Commit message (Collapse)AuthorAgeLines
...
| | * | | | | | EH Tests: Added test for `try_get_tag` `invoked_from_error_handler`Gravatar ks1292020-05-19-0/+7
| | | | | | | |
| | * | | | | | EH Tests: Added test for `try_get_tag` `get_command` callingGravatar ks1292020-05-19-0/+19
| | | | | | | |
| | * | | | | | EH Tests: Added tests for `get_help_command`in `OtherErrorHandlerTests`Gravatar ks1292020-05-19-0/+32
| | | | | | | |
| | * | | | | | EH Tests: Cleanup `try_silence` testsGravatar ks1292020-05-18-39/+27
| | | | | | | |
| | * | | | | | EH Tests: Added test for `try_silence` no match messageGravatar ks1292020-05-18-0/+6
| | | | | | | |
| | * | | | | | EH Tests: Created `try_silence` test to test unsilence command callingGravatar ks1292020-05-18-0/+17
| | | | | | | |
| | * | | | | | EH Tests: Created `try_silence` test to test silence command callingGravatar ks1292020-05-18-0/+17
| | | | | | | |
| | * | | | | | EH Tests: Created `try_silence` test to check no permission with exceptGravatar ks1292020-05-18-0/+8
| | | | | | | |
| | * | | | | | EH Tests: Created `try_silence` test to check no permission responseGravatar ks1292020-05-18-2/+9
| | | | | | | |
| | * | | | | | EH Tests: Created `try_silence` test for `get_command`Gravatar ks1292020-05-18-0/+9
| | | | | | | |
| | * | | | | | EH Tests: Created first test for `try_silence`Gravatar ks1292020-05-18-0/+18
| | | | | | | |
| | * | | | | | EH Tests: Created test for all other errorsGravatar ks1292020-05-18-0/+8
| | | | | | | |
| | * | | | | | EH Tests: Added test for 3 errors handling on handlerGravatar ks1292020-05-18-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These 3 errors is: - `ConversionError` - `MaxConcurrencyReached` - `ExtensionError`
| | * | | | | | EH Tests: Added test for `CommandInvokeError` handling on handlerGravatar ks1292020-05-18-0/+22
| | | | | | | |
| | * | | | | | EH Tests: Added test for `CommandOnCooldown` handling on handlerGravatar ks1292020-05-18-0/+8
| | | | | | | |
| | * | | | | | EH Tests: Added test for `CheckFailure` handling on handlerGravatar ks1292020-05-18-0/+9
| | | | | | | |
| | * | | | | | EH Tests: Added test for `UserInputError` handling on handlerGravatar ks1292020-05-18-0/+9
| | | | | | | |
| | * | | | | | EH Tests: Added another test for `CommandNotFound` error handlingGravatar ks1292020-05-18-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added test for case when `Context.invoked_from_error_handler` is `True`
| | * | | | | | Test Helpers: Added new attribute to `MockContext`Gravatar ks1292020-05-18-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added `invoked_from_error_handler` attribute that is `False` default.
| | * | | | | | EH Tests: Remove class member `cog` + other small changesGravatar ks1292020-05-18-14/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added `assertIsNone` to `test_error_handler_already_handled`. - Removed `ErrorHandlerTests.cog`, moved it to each test recreation.
| | * | | | | | EH Tests: Created test for `CommandNotFound` error when call isn't by EHGravatar ks1292020-05-18-0/+49
| | | | | | | |
| | * | | | | | EH Tests: Created test cases set + already handled error testGravatar ks1292020-05-18-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Created test that make sure when error is already handled in local error handler, this don't await `ctx.send` to make sure that this don't move forward.
* | | | | | | | Uses Itertools Product To Reduce NestingGravatar Hassan Abouelela2021-05-09-24/+26
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Uses itertools.product to eliminate some nested for loops in tests. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | Adds Missing Voice Version Of TestsGravatar Hassan Abouelela2021-05-04-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | Adds Voice Test Cases To Already Silenced TestGravatar Hassan Abouelela2021-05-04-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | Copy Existing Text Channel Cache Tests For VoiceGravatar Hassan Abouelela2021-05-04-82/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Duplicates existing silence and unsilence cache tests for voice channels. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | Uses Async Asserts Where PossibleGravatar Hassan Abouelela2021-04-24-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | Removes Unnecessary Members In Silence TestsGravatar Hassan Abouelela2021-04-21-16/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduces the number of members created for each test to the bare minimum required. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | Merge branch 'main' into voicechannel-muteGravatar Hassan Abouelela2021-04-20-12/+77
|\ \ \ \ \ \ \ | | |_|_|_|_|/ | |/| | | | |
| * | | | | | Tests: AsyncMock is now in the standard library!Gravatar Matteo Bertucci2021-04-20-1/+1
| | |_|_|_|/ | |/| | | | | | | | | | The `tests/README.md` file still referenced our old custom `AsyncMock` that has been removed in favour of the standard library one that has been introduced in 3.8. This commit fixes this by updating the section.
| * | | | | Merge branch 'main' into doc-impGravatar kosayoda2021-04-12-13/+11
| |\ \ \ \ \
| * \ \ \ \ \ Merge remote-tracking branch 'upstream/main' into doc-impGravatar Numerlor2021-03-25-19/+49
| |\ \ \ \ \ \
| * | | | | | | Handle arbitrary amount of backslashes preceding the quote charGravatar Numerlor2021-03-07-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tests for this were added additionally
| * | | | | | | Correct tests casesGravatar Numerlor2021-03-05-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The tests were not adjusted after the converter was corrected to accept digits
| * | | | | | | Add unittests for _split_signatureGravatar Numerlor2021-02-23-0/+59
| | | | | | | |
| * | | | | | | Merge remote-tracking branch 'upstream/master' into doc-impGravatar Numerlor2021-01-22-24/+23
| |\ \ \ \ \ \ \
| * \ \ \ \ \ \ \ Merge remote-tracking branch 'upstream/master' into doc-impGravatar Numerlor2021-01-11-24/+6
| |\ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ Merge remote-tracking branch 'upstream/master' into doc-impGravatar Numerlor2020-12-11-86/+104
| |\ \ \ \ \ \ \ \ \ | | | |_|_|_|_|_|/ / | | |/| | | | | | |
| * | | | | | | | | Merge remote-tracking branch 'upstream/master' into doc-impGravatar Numerlor2020-11-10-194/+633
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # LICENSE-THIRD-PARTY # bot/exts/info/doc.py
| * \ \ \ \ \ \ \ \ \ Merge remote-tracking branch 'upstream/master' into doc-impGravatar Numerlor2020-10-10-1546/+848
| |\ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ Merge remote-tracking branch 'upstream/master' into doc-impGravatar Numerlor2020-09-20-335/+1886
| |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # bot/cogs/doc/cog.py # bot/converters.py # tests/bot/test_converters.py
| * | | | | | | | | | | | Change ValidPythonIdentifier tests to PackageName.Gravatar Numerlor2020-07-22-11/+10
| | | | | | | | | | | | |
* | | | | | | | | | | | | Merge branch 'main' into voicechannel-muteGravatar Hassan Abouelela2021-04-06-18/+18
|\ \ \ \ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|_|/ / / / | |/| | | | | | | | | | |
| * | | | | | | | | | | | Minor test changes for the !user embedGravatar Ben Soyka2021-04-05-10/+6
| | | | | | | | | | | | |
| * | | | | | | | | | | | Update information tests for new embed color logicGravatar Ben Soyka2021-04-04-6/+8
| | | | | | | | | | | | |
| * | | | | | | | | | | | Fix tests for paste uploads.Gravatar Den42002021-03-27-2/+2
| | |_|_|_|_|_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Accounts for no redirects on extensions that are not `.py`.
| * | | | | | | | | | | Merge branch 'main' into swfarnsworth/infraction_messageGravatar Matteo Bertucci2021-03-17-1/+1
| |\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | Update the tests to reflect changes in expected behavior.Gravatar swfarnsworth2021-02-28-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The DM sent to infracted users now instructs them to DM modmail if they want to discuss non-ban infractions, so the tests now check if that instruction is present. Note that there already exists a superfluous test for note infractions, for which no DM is sent by design.
| * | | | | | | | | | | | Instructions to dispute an infraction vary by infraction type.Gravatar swfarnsworth2021-02-25-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, the user was instructed to email the appeals email for infraction types that don't remove one from the server. They are now instructed to DM ModMail except for Ban-type infractions. Also removed the URL string literal from the hyperlink to that URL.
* | | | | | | | | | | | | Removes Unused Mock ResetGravatar Hassan Abouelela2021-03-12-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>