Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | fix: don't include replied mentions in mention filter (#2017) | 2022-08-18 | -5/+75 | |
| | | | | | Co-authored-by: Izan <[email protected]> Co-authored-by: TizzySaurus <[email protected]> Co-authored-by: Xithrius <[email protected]> | |||
* | Merge branch 'main' into incident-archive-msg-improvements | 2022-08-18 | -42/+37 | |
|\ | ||||
| * | Correctly initialise redis tests | 2022-08-15 | -42/+37 | |
| | | | | | | | | | | | | | | | | | | Calling the cog_load from within the setUp function resulted in interaction with a RedisSession before it was initialised. This wasn't noticed in CI as it only error under certain concurrency timings due to xdist. To resolve this, we moved the setup and async setup logic to a base class. Co-authored-by: Hassan Abouelela <[email protected]> | |||
* | | Fix incident tests. | 2022-08-15 | -13/+25 | |
| | | ||||
* | | Merge branch 'main' into incident-archive-msg-improvements | 2022-08-14 | -447/+603 | |
|\| | ||||
| * | Use RedisTestCase helper class for both Incidents and Silence test cases. | 2022-08-14 | -36/+6 | |
| | | ||||
| * | Add a new test helper for managing redis sessions | 2022-08-14 | -0/+24 | |
| | | | | | | | | This helper ensures that a fresh RedisSession is given to each test case that inherits from it. | |||
| * | Remove unneeded N802 noqas | 2022-08-14 | -5/+5 | |
| | | | | | | | | pep-naming now supports these functions being in camel case. | |||
| * | Stop creating futures in tests with no event loop running | 2022-08-14 | -6/+0 | |
| | | ||||
| * | No longer use the removed RedisSession connection object | 2022-08-14 | -3/+2 | |
| | | | | | | | | This has been abstracted away, the correct way to do this now is to directly access the client. | |||
| * | Remove warnings in error handler tests | 2022-08-14 | -56/+47 | |
| | | | | | | | | These warnings were caused by the setup coro from error_handler.py being imported directly, causing a warning about an un-awaited coro whenever the Cog was accessed from the same file. | |||
| * | Remove call to get_event_loop in tests | 2022-08-14 | -3/+2 | |
| | | | | | | | | get_event_loop is deprecated as of 3.10 if there is no running loop. | |||
| * | Update snekbox tests to expect new output | 2022-07-21 | -11/+13 | |
| | | ||||
| * | Update snekbox tests to reflect current behaviour | 2022-07-16 | -23/+37 | |
| | | ||||
| * | Use new application format for message data in test helper | 2022-06-28 | -1/+1 | |
| | | ||||
| * | Merge branch 'main' into improve-pastebin-error-handling | 2022-06-07 | -2/+7 | |
| |\ | ||||
| | * | Fix tests | 2022-05-28 | -0/+3 | |
| | | | ||||
| | * | Bump malformed API response from debug to error log (#2175) | 2022-05-21 | -2/+4 | |
| | | | ||||
| * | | Make small wording and style changes | 2022-05-29 | -2/+3 | |
| | | | ||||
| * | | Raise ValueError if max_length greater than allowed by paste service | 2022-05-29 | -0/+5 | |
| | | | ||||
| * | | Fix tests | 2022-05-02 | -10/+17 | |
| |/ | ||||
| * | Speed Up Sync Cog Loading | 2022-04-23 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | | | The user syncer was blocking the startup of the sync cog due to having to perform thousands of pointless member fetch requests. This speeds up that process by increasing the probability that the cache is up-to-date using `Guild.chunked`, and limiting the fetches to members who were in the guild during the previous sync only. Co-authored-by: ChrisJL <[email protected]> Co-authored-by: wookie184 <[email protected]> Signed-off-by: Hassan Abouelela <[email protected]> | |||
| * | remove unneeded import in tests | 2022-04-20 | -1/+0 | |
| | | ||||
| * | Pass the now required intents kwarg when creating MockBot | 2022-04-19 | -0/+1 | |
| | | ||||
| * | Add missing underscores to test function names | 2022-04-18 | -3/+3 | |
| | | ||||
| * | Test that sync cog syncers run when sync cog is loaded | 2022-04-18 | -0/+13 | |
| | | ||||
| * | Don't try to overwrite a read-only attr in help command test | 2022-04-18 | -1/+1 | |
| | | ||||
| * | Remove sync cog init test | 2022-04-18 | -17/+0 | |
| | | | | | | | | Discord.py now implicitly calls the new async cog_load function from within it's internals on load. There is no longer a need to test that this happens. | |||
| * | Update tests to use new async cog_load function | 2022-04-18 | -25/+17 | |
| | | ||||
| * | Update tests to use new async cog setup function | 2022-04-18 | -29/+28 | |
| | | ||||
| * | Update test helpers with breaking d.py changes | 2022-04-18 | -1/+5 | |
| | | | | | | | | | | | | | | region was removed from the guild object, so this has been replaced with features add_cog is now async, so it is now an async_mock during tests Two new required voice_channel attrs were added channel.type is required to be set to ChannelType due to a new isinstance check in d.py | |||
| * | Adding missing kwargs required by BotBase in test helper | 2022-04-18 | -0/+3 | |
| | | ||||
| * | Remove async stats and site api wrapper | 2022-04-18 | -72/+7 | |
| | | | | | | | | We now source them from bot-core, so no need to have them here too. | |||
| * | Use bot-core scheduling and member util functions | 2022-04-18 | -2/+2 | |
| | | ||||
| * | Merge branch 'main' into feat/timeit-command | 2022-03-31 | -21/+208 | |
| |\ | ||||
| | * | Revert "Update all references of discord.py to disnake" | 2022-03-15 | -132/+132 | |
| | | | | | | | | | | | | This reverts commit 960619c23300c56c8aaa454edc7241e2badf80ad. | |||
| | * | Merge main into feat/mod/1664/resend-infraction | 2022-03-05 | -132/+132 | |
| | |\ | ||||
| | | * | Update all references of discord.py to disnake | 2022-03-05 | -132/+132 | |
| | | | | | | | | | | | | | | | | All of the tag content is out of scope for this PR. | |||
| | * | | Merge main into feat/mod/1664/resend-infraction | 2022-02-22 | -427/+972 | |
| | |\| | ||||
| | | * | Remove unnecessary Infraction conversion in clean ban (#2092) | 2022-02-16 | -4/+2 | |
| | | | | ||||
| | | * | Typo and docstrings in clean ban tests | 2022-02-16 | -1/+2 | |
| | | | | | | | | | | | | | | | | Co-authored-by: GDWR <[email protected]> | |||
| | | * | Send error when cleanban fails to ban | 2022-02-16 | -1/+1 | |
| | | | | | | | | | | | | | | | | Co-authored-by: GDWR <[email protected]> | |||
| | | * | Add tests for new CleanBan and Clean functionality | 2022-02-16 | -1/+193 | |
| | | | | ||||
| | * | | Add util function to send an infraction using an Infraction dict | 2021-07-15 | -2/+2 | |
| | | | | | | | | | | | | | | | | | | | | There was some redundant pre-processing of arguments happening before calling `notify_infraction`. | |||
| * | | | Merge branch 'main' into feat/timeit-command | 2022-02-15 | -43/+43 | |
| |\ \ \ | | | |/ | | |/| | ||||
| | * | | Refactor voice_ban function definitions to voice_mute | 2022-01-25 | -39/+39 | |
| | | | | | | | | | | | | | | | | | | | | | | | | This changes all functions that reference voice_ban to voice_mute instead, which comes with breaking front-end changes. These front end changes are desirable, so that moderators get used to use voice_mute now, rather than voice_ban, in preparation for when we roll out real voice_bans. | |||
| | * | | Rename voice_ban type to voice_mute | 2022-01-25 | -4/+4 | |
| | | | | | | | | | | | | | | | | | | | | | | | | This commit changes all of the back-end so that it is in line with the new site API (see this PR https://github.com/python-discord/site/pull/608). This comes with no changes to commands, or functions definitions. | |||
| * | | | tests: Add a test for timeit command codeblock preparation | 2022-02-05 | -0/+15 | |
| | | | | ||||
| * | | | fix: Use filter_snekbox_output rather than job | 2022-02-04 | -3/+3 | |
| | | | | ||||
| * | | | chore: Switch Snekbox.prepare_input with a CodeblockConverter | 2022-01-27 | -53/+52 | |
| | | | | | | | | | | | | | | | | As per @Numerlor's suggestion |