aboutsummaryrefslogtreecommitdiffstats
path: root/tests (follow)
Commit message (Collapse)AuthorAgeLines
* Fix filtering testsGravatar mbaruh2023-03-23-6/+6
|
* Merge branch 'main' into new-filtersGravatar mbaruh2023-03-21-83/+254
|\
| * Merge branch 'main' into snekbox-filesGravatar Ionite2023-03-09-13/+75
| |\ | | | | | | | | | | | | | | | | | | # Conflicts: # bot/constants.py # bot/exts/utils/snekbox/_cog.py # config-default.yml
| | * Bump markdownify from 0.6.1 to 0.11.6 (#2429)Gravatar dependabot[bot]2023-03-07-0/+23
| | | | | | | | | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: wookie184 <[email protected]>
| | * Merge branch 'main' into 2301-fix-voting-conditionsGravatar Boris Muratov2023-03-03-11/+40
| | |\
| | * \ Merge branch 'main' into 2301-fix-voting-conditionsGravatar wookie1842022-11-30-7/+7
| | |\ \
| | * \ \ Merge branch 'main' into 2301-fix-voting-conditionsGravatar wookie1842022-11-05-31/+34
| | |\ \ \
| | * | | | Fix testsGravatar wookie1842022-10-22-3/+13
| | | | | |
| * | | | | Use PurePosixPath so tests work on windowsGravatar Ionite2023-02-22-5/+1
| | | | | |
| * | | | | Update unit tests for file error message changesGravatar Ionite2023-02-08-9/+5
| | | | | |
| * | | | | Add skip condition for windows not able to test path escapesGravatar Ionite2023-02-07-2/+6
| | | | | |
| * | | | | Fix unit tests for new failmail emojiGravatar Ionite2023-02-07-5/+5
| | | | | |
| * | | | | Add disallowed file extensions testsGravatar Ionite2023-02-06-0/+29
| | | | | |
| * | | | | Change failed files str to truncate on chars onlyGravatar ionite342022-12-20-13/+11
| | | | | |
| * | | | | Add normalize file name testsGravatar ionite342022-12-20-0/+34
| | | | | |
| * | | | | Refactor snekbox tests to moduleGravatar ionite342022-12-20-0/+0
| | | | | |
| * | | | | Rename method get_failed_files_strGravatar ionite342022-12-20-1/+1
| | | | | |
| * | | | | Add unit tests for EvalResult.files_error_strGravatar ionite342022-12-17-0/+21
| | | | | |
| * | | | | Add unit test for files_error_messageGravatar ionite342022-12-17-1/+28
| | | | | |
| * | | | | Update unit tests for EvalResult message changeGravatar ionite342022-12-17-7/+16
| | | | | |
| * | | | | Refactor to move snekbox to moduleGravatar ionite342022-12-14-18/+22
| | | | | |
| * | | | | Update test_post_job to use 3.10 snekboxGravatar ionite342022-12-14-1/+1
| | | | | |
| * | | | | Update function name `get_message`Gravatar ionite342022-12-14-3/+3
| | | | | |
| * | | | | Fix test_post_job unit testGravatar ionite342022-12-14-2/+2
| | | | | |
| * | | | | Reorder importsGravatar ionite342022-11-30-1/+1
| | | | | |
| * | | | | Merge branch 'main' into snekbox-filesGravatar Ionite2022-11-30-7/+7
| |\ \ \ \ \ | | | |_|/ / | | |/| | |
| * | | | | Update unit tests for snekboxGravatar ionite342022-11-30-54/+57
| | | | | |
| * | | | | Update unit testGravatar ionite342022-11-24-3/+3
| | | | | |
| * | | | | Update unit testsGravatar Ionite2022-11-20-28/+45
| | |_|/ / | |/| | |
* | | | | Merge branch 'main' into new-filtersGravatar mbaruh2023-02-28-48/+80
|\ \ \ \ \ | | |_|_|/ | |/| | |
| * | | | add the `flags` key to the member_data dictionaryGravatar shtlrs2023-02-28-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | The value 2 represents the `COMPLETED_ONBOARDING` flag, found here https://discord.com/developers/docs/resources/guild#guild-member-object-guild-member-flags
| * | | | Merge branch 'main' into migration/tagGravatar wookie1842023-02-27-3/+3
| |\ \ \ \
| | * | | | Fix timeit commands with backticks after command nameGravatar wookie1842023-02-25-3/+3
| | | |/ / | | |/| |
| * | | | Implement reviewsGravatar Ibrahim2023-02-26-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + used both `discord.User` and `discord.Member` in typehinting as `InteractionResponse.user` returns `discord.User` object + removed `ErrorHandler()._can_run` + edited `try_get_tag` to use `bot.can_run` + removed `/tag list` + change `/tag get <name>` to `/tag <name>` + remove redundant `GUILD_ID` in `tags.py` + using `discord.abc.Messageable` because `ctx.channel` returns that instead of `Channel` Object
| * | | | Implement all reviewsGravatar Ibrahim2023-02-23-26/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + Remove commented code + Remove unecessarily syncting the bot + Handle direct tag commads + 3.10 type hinting in concerned functions + Add `MockInteractionMessage` + Fix tests for `try_get_tag`
| * | | | Update tests for `/tag` as of migration to slash commandsGravatar Ibrahim2750mi2023-02-14-22/+42
| |/ / /
| * / / Update botcore module nameGravatar Chris Lovering2022-11-26-7/+7
| |/ /
| * | Merge branch 'main' into 2306-nominations-cleanupGravatar wookie1842022-11-05-13/+13
| |\ \
| | * | Reverse changes to invalid arg breakGravatar Ionite2022-10-25-3/+4
| | | |
| | * | Update tests to work with rules arg fixGravatar Ionite2022-10-25-4/+3
| | | |
| | * | Update tests for new single string formatGravatar Ionite2022-10-25-12/+12
| | | |
| | * | Added new star expression fixGravatar Ionite2022-10-25-3/+3
| | | |
| | * | Made arg fix compatible with testsGravatar Ionite2022-10-25-3/+3
| | | |
| * | | Fix testsGravatar wookie1842022-10-22-19/+22
| | |/ | |/|
* | | Bring back old system testsGravatar mbaruh2023-01-22-11/+484
| | |
* | | Add the rest of the antispam rulesGravatar mbaruh2022-11-01-3/+3
| | | | | | | | | | | | | | | This is mostly a copy-paste of the implementations in the old system into the new system's structure. The mentions rule required changing the `triggers_on` method to async.
* | | Merge branch 'main' into new-filtersGravatar mbaruh2022-10-23-6/+270
|\ \ \ | | |/ | |/|
| * | Move Security cog to backend extensionGravatar mbaruh2022-10-22-1/+1
| |/
| * Merge branch 'main' into update-autoreview-systemGravatar wookie1842022-10-19-4/+93
| |\
| | * Use explicit mock channels in tests to remove warningGravatar Chris Lovering2022-10-10-2/+11
| | | | | | | | | | | | | | | | | | This is need due to the new behaviour of discord.utils.get supporting both iterables and async iterables by checking for the presence of the __aiter__ attr on the iterable. GuildChannelConverter._resolve_channel uses this get util under the hood which grabs the voice channels on the guild, which were previously Mocked by the MagicMock, meaning the __aiter__ attr was present, causing the util to think it should be ran asynchronously.