aboutsummaryrefslogtreecommitdiffstats
path: root/tests (follow)
Commit message (Collapse)AuthorAgeLines
* Merge pull request #2997 from python-discord/improve-infractions-testsGravatar jchristgit2024-04-06-4/+16
|\ | | | | Test that infraction reason sent to database is not truncated
| * Test that infraction reason sent to database is not truncatedGravatar wookie1842024-04-01-4/+16
| |
* | Fix coroutine never awaited warning in sync tests (#2996)Gravatar wookie1842024-04-03-2/+5
|/
* Merge branch 'main' into fix-test-warningGravatar wookie1842024-04-01-24/+38
|\
| * Update syncer testsGravatar Chris Lovering2024-04-01-24/+38
| |
* | Fix warning in testsGravatar wookie1842024-04-01-2/+2
|/
* Snekbox: truncate blocked file extensionsGravatar Mark2024-03-26-6/+13
| | | | | | Avoid Discord's character limit for messages. Fix #2464
* Make help showable through button on command error message. (#2439)Gravatar wookie1842024-03-25-3/+4
| | | | | | | | | | | | | | | | | * Make help showable through button on command error message. * Improve error message Improve error message for attempting to delete other users' command invocations Co-authored-by: Boris Muratov <[email protected]> * Use double quotes instead of single * Refactor to use `ViewWithUserAndRoleCheck` --------- Co-authored-by: Boris Muratov <[email protected]>
* update configuration tests (#2951)Gravatar Amrou Bellalouna2024-03-21-38/+28
| | | The old test relied on the old system where we loaded config from a yaml file, which ended up doing nothing.
* Replace aliased errors with TimeoutErrorGravatar Chris Lovering2024-02-02-2/+2
|
* delete pagination testsGravatar shtlrs2024-01-31-46/+0
| | | | These have been ported to bot-core
* Merge branch 'main' into fix-incorrect-testGravatar wookie1842024-01-28-1/+3
|\
| * Move modlog method to util (#2877)Gravatar wookie1842024-01-08-1/+3
| |
* | Fix test code that was doing nothingGravatar wookie1842023-12-31-3/+7
|/
* Appeased the linterGravatar Xithrius2023-11-08-1/+0
|
* Update all references of 3.11 in eval to 3.12 (#2777)Gravatar ChrisJL2023-10-03-14/+14
|
* Centralise error handling for commands invoked from error handler (#2436)Gravatar wookie1842023-09-19-22/+4
|
* Bump ruff from 0.0.285 to 0.0.287 (#2745)Gravatar dependabot[bot]2023-09-06-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * Bump ruff from 0.0.285 to 0.0.287 Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.285 to 0.0.287. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md) - [Commits](https://github.com/astral-sh/ruff/compare/v0.0.285...v0.0.287) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Update bot to comply with ruff 0.0.287 linting rules --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Joe Banks <[email protected]>
* Update import style for ruff isort ruleGravatar Chris Lovering2023-08-11-4/+21
| | | | ruff's isort rule doesn't allow multiple imports on the same line if wrapping. This is arguably easier to read too.
* Replace deprecated functions with new pydantic v2 functionsGravatar Chris Lovering2023-08-11-2/+2
|
* Bump ruff from 0.0.282 to 0.0.283Gravatar dependabot[bot]2023-08-10-1/+1
| | | | | | | | | | | | | | | | Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.282 to 0.0.283. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md) - [Commits](https://github.com/astral-sh/ruff/compare/v0.0.282...v0.0.283) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
* Change DM users get when warned (#2696)Gravatar Steele Farnsworth2023-08-05-5/+5
|
* Mock _lexers_supported_by_pastebin in test to ensure no call to external ↵Gravatar Chris Lovering2023-07-11-0/+4
| | | | service is made
* Use the new pydis_core send_to_paste_service functionGravatar Chris Lovering2023-07-11-101/+2
|
* Fix some test warnings (#2675)Gravatar wookie1842023-07-09-5/+18
| | | | | | | * Fix test warnings * Remove unnecessary event_loop parameters This is not necessary as the current event loop will be used which is the same as self.bot.loop. Removing these should slightly improve test speed as the mock for self.bot.loop doesn't need to be created.
* Update MockAttachment data with new expected fieldsGravatar Chris Lovering2023-06-21-1/+12
|
* Write custom get_role func for MockMemberGravatar Chris Lovering2023-06-21-0/+3
| | | | The new d.py Member.get_role uses the Guild.get_role function if the member has the role. SInce we don't set Guild.roles overwrite this instead.
* Allow use of msg reply to add context to incidentGravatar vivekashok12212023-06-21-0/+1
|
* Use f-string conversions over functionsGravatar Chris Lovering2023-05-24-1/+1
|
* Don't collect coverage info by default when running testsGravatar wookie1842023-04-16-6/+6
|
* Improve test speed using some cached_property decorators on mocksGravatar wookie1842023-04-15-6/+30
|
* Migrate code style to ruffGravatar Chris Lovering2023-04-11-440/+446
| | | | | Co-authored-by: Boris Muratov <[email protected]> Co-authored-by: wookie184 <[email protected]>
* Remove dead or unused code (#2528)Gravatar Boris Muratov2023-04-11-170/+0
|
* Merge branch 'main' into 2302-activity-in-reviewsGravatar Boris Muratov2023-04-09-1507/+712
|\
| * Adjust to site using dicts in additional_settings instead of JSON stringsGravatar Boris Muratov2023-04-06-3/+3
| | | | | | | | This is to make sure that the unique constraint always compares between dicts instead of sometimes dealing with nulls.
| * Fix testGravatar Boris Muratov2023-04-05-1/+1
| |
| * Merge branch 'main' into new-filtersGravatar Boris Muratov2023-04-05-1/+2
| |\
| | * Replace mock._importer with pkgutil.resolve_name in test autospecGravatar shtlrs2023-03-29-1/+2
| | | | | | | | | | | | mock._importer was removed in 3.11
| * | Support custom value representation in filtering UIGravatar mbaruh2023-03-28-7/+9
| | | | | | | | | | | | Adds the `CustomIOField` class which can be used as a base for wrappers that store a value with a customized way to process the user input and to present the value in the UI.
| * | Rename additional_field to additional_settingsGravatar mbaruh2023-03-26-3/+3
| | |
| * | Add support for snekbox IO in the new filtering systemGravatar mbaruh2023-03-23-19/+19
| | |
| * | Fix filtering testsGravatar mbaruh2023-03-23-6/+6
| | |
| * | Merge branch 'main' into new-filtersGravatar mbaruh2023-03-21-83/+254
| |\|
| * | Merge branch 'main' into new-filtersGravatar mbaruh2023-02-28-48/+80
| |\ \
| * | | 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
| |\ \ \
| * | | | Fix testsGravatar mbaruh2022-10-01-279/+42
| | | | |
| * | | | Split actions and validations to their own packcagesGravatar mbaruh2022-09-30-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a purely aesthetic choice. Additionally fixes a small bug where a missing entry type would repeatedly invoke a warning on cog load.
| * | | | Merge branch 'main' into new-filtersGravatar mbaruh2022-09-24-217/+477
| |\ \ \ \