aboutsummaryrefslogtreecommitdiffstats
path: root/tests (follow)
Commit message (Collapse)AuthorAgeLines
...
* | | | | | | | Cleans Up Voice Sync TestsGravatar Hassan Abouelela2021-01-10-18/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cleans up the tests related to the voice sync/kick functions by adding a helper method to simplify mocking.
* | | | | | | | Cleans Up & Simplifies TestsGravatar Hassan Abouelela2021-01-10-78/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cleans up the silence tests by removing unneeded or repeated mocks. Simplifies tests where possible by joining similar tests.
* | | | | | | | Breaks Out Send Message TestsGravatar Hassan Abouelela2020-12-29-75/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moves the tests for the helper method `send_message` to simplify tests, and avoid repeated code.
* | | | | | | | Makes Kick Keyword Only ParameterGravatar Hassan Abouelela2020-12-29-1/+1
| | | | | | | |
* | | | | | | | Refractors Helper Method SignaturesGravatar Hassan Abouelela2020-12-29-11/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes the signatures of a few helper methods to make them more concise and understandable.
* | | | | | | | Merge branch 'master' into voicechannel-muteGravatar Hassan Abouelela2020-12-22-23/+7
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela<[email protected]> # Conflicts # bot/exts/moderation/silence.py # bot/exts/moderation/test_silence.py
| * | | | | | | Remove obsolete test casesGravatar MarkKoz2020-12-19-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Forgot to remove these when removing `loop_is_running` in a previous commit.
| * | | | | | | Fix silence testsGravatar Joe Banks2020-12-19-3/+3
| | | | | | | |
| * | | | | | | Fix silence command to use guild default roleGravatar Joe Banks2020-12-19-9/+0
| | | | | | | |
| * | | | | | | Fix pending testsGravatar Joe Banks2020-12-19-2/+2
| | | | | | | |
| * | | | | | | Added catching for unparsable short ISO dates.Gravatar Xithrius2020-12-11-0/+1
| | |_|/ / / / | |/| | | | |
* | | | | | | Fixes Voice Silence TestsGravatar Hassan Abouelela2020-12-01-34/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | Refractors According To Style GuideGravatar Hassan Abouelela2020-11-28-64/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates changes made in the PR to be more inline with style guide. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | Refractors Voice Sync HelperGravatar Hassan Abouelela2020-11-28-49/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refractors the voice sync helper function into two different functions, one for each purpose. Moves the afk_channel get/creation code to its own function. Updates tests. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | Clarifies Constants Use in SilenceGravatar Hassan Abouelela2020-11-28-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes all usages of bot.constant to use dotted path to remove confusion and namespace collision. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | Fixes Typo in Silence TestsGravatar Hassan Abouelela2020-11-24-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | Moves VoiceChat Sync Out of Overwrites FunctionGravatar Hassan Abouelela2020-11-24-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VoiceChat sync only needs to be called when the command is invoked, instead of while updating permissions. Moved call to command function to reflect that, and fixed failing tests. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | Refractors SendMessage FunctionGravatar Hassan Abouelela2020-11-24-22/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refractors the send message function in silence to make it more understandable and flexible. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | Fixes Typo in DocGravatar Hassan Abouelela2020-11-24-1/+1
| | | | | | | | | | | | | | | | | | | | | Co-authored-by: Mark <[email protected]>
* | | | | | | Removes AnyChannel ConverterGravatar Hassan Abouelela2020-11-24-48/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removes the AnyChannel converter in favor of a combination of Text and Voice converters. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | Finalizes Silence & Unsilence UnitTestsGravatar Hassan Abouelela2020-11-23-17/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | Adds Silence & Unsilence UnitTestsGravatar Hassan Abouelela2020-11-23-1/+211
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | General Silence Class TestsGravatar Hassan Abouelela2020-11-23-5/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds tests for helper functions in the silence cog. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | Write AnyChannelConverter TestsGravatar Hassan Abouelela2020-11-23-0/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | Merge branch 'master' into voicechannel-muteGravatar Hassan Abouelela2020-11-22-86/+104
|\| | | | | |
| * | | | | | Merge branch 'master' into emojis-filterGravatar Daniel Brown2020-11-20-82/+79
| |\ \ \ \ \ \
| | * \ \ \ \ \ Merge master and fix conflictsGravatar MarkKoz2020-11-16-194/+633
| | |\ \ \ \ \ \ | | | | |_|_|_|/ | | | |/| | | |
| | * | | | | | Syncers: make functions staticGravatar MarkKoz2020-10-17-49/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The classes no longer hold any state since they can use the global bot instance.
| | * | | | | | Use global bot instance in syncersGravatar MarkKoz2020-10-16-24/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | They're pretty close to being fully static classes, but it's difficult to make the name attribute a static abstract property.
| | * | | | | | Use global bot instance in send_to_paste_serviceGravatar MarkKoz2020-10-16-21/+22
| | | |_|/ / / | | |/| | | |
| * | | | | | Cover Unicode emojis catching as antispam rule with test casesGravatar ks1292020-11-20-4/+25
| | |/ / / / | |/| | | |
* / | | | | Adds VoiceChannel MuteGravatar Hassan Abouelela2020-11-16-6/+6
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds an optional channel parameter to silence and unsilence commands, and adds ability to silence voice channels. TODO: New Tests Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | Merge pull request #1212 from mbaruh/masterGravatar Mark2020-10-22-0/+7
|\ \ \ \ \ | | | | | | | | | | | | Added interleaving text in code blocks option
| * | | | | adjusted prepare_input docs and unittestsGravatar mbaruh2020-10-08-0/+7
| | | | | |
* | | | | | Merge master and fix LICENSE-THIRD-PARTY conflictGravatar MarkKoz2020-10-21-1/+147
|\ \ \ \ \ \
| * | | | | | Remove test for case when user don't have VV for voice banGravatar ks1292020-10-18-8/+0
| | | | | | |
| * | | | | | Fix voice ban command name in testGravatar ks1292020-10-18-1/+1
| | | | | | |
| * | | | | | Update tests to not automatically adding back verified after vban expireGravatar ks1292020-10-18-3/+0
| | | | | | |
| * | | | | | Fix user not found info field testGravatar ks1292020-10-18-1/+1
| | | | | | |
| * | | | | | Fix linting for voice gate and voice banGravatar ks1292020-10-11-1/+1
| | | | | | |
| * | | | | | Create test for voice unban fail send DMGravatar ks1292020-10-11-0/+15
| | | | | | |
| * | | | | | Create base test for voice unbanGravatar ks1292020-10-11-0/+18
| | | | | | |
| * | | | | | Create test for voice ban pardon when user not foundGravatar ks1292020-10-11-0/+7
| | | | | | |
| * | | | | | Shorten voice ban reason and create test for itGravatar ks1292020-10-11-0/+17
| | | | | | |
| * | | | | | Add Voice Ban test about calling apply_infractionGravatar ks1292020-10-11-0/+15
| | | | | | |
| * | | | | | Create test for voice ban applying role remove ignore.Gravatar ks1292020-10-11-0/+15
| | | | | | |
| * | | | | | Check arguments for get_active_infraction in voice ban testsGravatar ks1292020-10-11-1/+1
| | | | | | |
| * | | | | | Create test to check does this pass proper kwargs to infraction postingGravatar ks1292020-10-11-0/+12
| | | | | | |
| * | | | | | Create test for case when posting infraction failsGravatar ks1292020-10-11-1/+12
| | | | | | |
| * | | | | | Create test for case when user already have active Voice BanGravatar ks1292020-10-11-2/+11
| | | | | | |