aboutsummaryrefslogtreecommitdiffstats
path: root/tests (follow)
Commit message (Collapse)AuthorAgeLines
...
| | | | * | | | | | | Merge branch 'master' into voicechannel-muteGravatar Hassan Abouelela2021-02-04-39/+64
| | | | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # bot/constants.py
| | | | * | | | | | | | 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
| | | | * | | | | | | | | 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
| | | | |\ \ \ \ \ \ \ \ \
| | | | * | | | | | | | | | 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]>
| | | * | | | | | | | | | | Properly Handle Fuzzy Matching HelpGravatar Hassan Abouelela2021-07-09-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes a bug where calling help with an invalid command would crash out during fuzzy matching. Signed-off-by: Hassan Abouelela <[email protected]>
| | | * | | | | | | | | | | Fixes N818 ComplianceGravatar Hassan Abouelela2021-07-07-2/+2
| | | | |_|_|_|_|_|_|_|_|/ | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Renames a couple exceptions to include the error suffix, as enforced by N818. Signed-off-by: Hassan Abouelela <[email protected]>
| | * | | | | | | | | | | Tests: remove stale patch of time_sinceGravatar Matteo Bertucci2021-07-02-1/+0
| | | | | | | | | | | | |
| | * | | | | | | | | | | Make use of Discord timestampsGravatar Matteo Bertucci2021-07-02-50/+35
| | | | | | | | | | | | |
| | * | | | | | | | | | | Bump embed limit to 4096 charactersGravatar Matteo Bertucci2021-07-02-2/+2
| | | | | | | | | | | | |
| * | | | | | | | | | | | Move jam channels creation to separate fileGravatar mbaruh2021-07-08-34/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The channel creations are static and clutter the cog class. We want to add more commands to the cog, so we move the static functions away to a separate file first.
| * | | | | | | | | | | | Create events ext, prepare jams cog for file splitGravatar mbaruh2021-07-07-8/+8
| | |/ / / / / / / / / / | |/| | | | | | | | | |
| * | | | | | | | | | | Merge branch 'main' into feat/code-jam-channels-automationGravatar ToxicKidz2021-07-05-19/+70
| |\ \ \ \ \ \ \ \ \ \ \
| | * | | | | | | | | | | Adds Documentation For Running A Single Test (#1669)Gravatar Hassan Abouelela2021-07-05-0/+31
| | |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a portion to the testing README explaining how and when to run an individual test file when working with tests. Additionally adds a table of contents as the document has become quite long. Signed-off-by: Hassan Abouelela <[email protected]>
| * | | | | | | | | | / chore: Update tests for the new codejam create commandGravatar ToxicKidz2021-07-05-67/+92
| | |_|_|_|_|_|_|_|_|/ | |/| | | | | | | | |
* | | | | | | | | | | Remove TagNameConverterGravatar Numerlor2021-09-06-53/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The converter was now only used to restrict requested names which can be handled by not matching a tag in the cog and not displaying output, this allows us to be a bit more generous with tag names during the command fallback when a name with invalid symbols is parsed after a group
* | | | | | | | | | | Fix testsGravatar Numerlor2021-07-06-10/+18
| |/ / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unnecessary invoked with mocks were removed and some more checks added for the new behaviour
* | | | | | | | | | Merge branch 'main' into xdistGravatar Hassan Abouelela2021-06-27-17/+32
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]> # Conflicts: # poetry.lock
| * | | | | | | | | | Tests: update infraction DM to mention UTCGravatar Matteo Bertucci2021-06-10-2/+2
| | | | | | | | | | |
| * | | | | | | | | | Renamed blocked_extension_str to blocked_extension.Gravatar Xithrius2021-06-06-1/+1
| | | | | | | | | | |
| * | | | | | | | | | Added new formats to unittest docstrings.Gravatar Xithrius2021-06-06-2/+2
| | | | | | | | | | |
| * | | | | | | | | | Added subtests for `.txt`, `.json`, and `.csv` files.Gravatar Xithrius2021-06-06-16/+28
| | | | | | | | | | |
| * | | | | | | | | | Added .txt file extension to antimalware test.Gravatar Xithrius2021-06-06-1/+4
| |/ / / / / / / / /
* | | | | | | | | | Renamed Test Task In DocumentationGravatar Hassan Abouelela2021-06-12-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | | | | Fix Script Count In DocumentationGravatar Hassan Abouelela2021-06-07-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | | | | Adds Fast-Test TaskGravatar Hassan Abouelela2021-06-07-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | | | | Switches To Pytest As Test RunnerGravatar Hassan Abouelela2021-06-07-1/+5
|/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switches the test runner from unittest to pytest, to allow the usage of plugins such as xdist. This commit also adds pytest-cov purely as a generator for .coverage files. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | | | Updates Usages Of Pipenv To PoetryGravatar Hassan Abouelela2021-05-11-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates the Dockerfile, pre-commit, CI, and documentation to reflect the new dependency manager. Dockerfile is also updated to 3.9. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | | | | | Remove test for un-available function.Gravatar rohan2021-05-10-13/+0
| | | | | | | | |
* | | | | | | | | (infractions): Modify voice ban tests according to new changes in 3272605Gravatar Shivansh2021-05-07-2/+2
| |_|_|_|_|_|_|/ |/| | | | | | |
* | | | | | | | Address error behavior update.Gravatar kosayoda2021-04-28-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BadUnionArgument sends command help after: https://github.com/python-discord/bot/pull/1434
* | | | | | | | Remove BrandingError check.Gravatar kosayoda2021-04-28-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was removed in the branding manager rewrite: https://github.com/python-discord/bot/pull/1463/
* | | | | | | | Merge branch 'main' into error-handler-testGravatar kosayoda2021-04-28-33/+100
|\ \ \ \ \ \ \ \