| Commit message (Collapse) | Author | Age | Lines |
|
|
|
| |
Improves performance and makes other tests more realistic
|
|
|
|
| |
I combined two tests into one where it made sense. This is much neater and makes for better tests
|
|
|
|
| |
None of these tests need Redis or anything set by cog_load and setting them up for every test slows things down
|
|
|
|
| |
This is cleaner, and better practice.
|
|
|
|
| |
In many cases the Guild mock is not needed so this makes tests faster
|
|\ |
|
| |\ |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |/
|/| |
|
|\ \
| | |
| | | |
Test that infraction reason sent to database is not truncated
|
| |/ |
|
|/ |
|
|\ |
|
| | |
|
|/ |
|
|
|
|
|
|
| |
Avoid Discord's character limit for messages.
Fix #2464
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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]>
|
|
|
| |
The old test relied on the old system where we loaded config from a yaml file, which ended up doing nothing.
|
| |
|
|
|
|
| |
These have been ported to bot-core
|
|\ |
|
| | |
|
|/ |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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]>
|
|
|
|
| |
ruff's isort rule doesn't allow multiple imports on the same line if wrapping. This is arguably easier to read too.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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]>
|
| |
|
|
|
|
| |
service is made
|
| |
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Co-authored-by: Boris Muratov <[email protected]>
Co-authored-by: wookie184 <[email protected]>
|
| |
|
|\ |
|
| |
| |
| |
| | |
This is to make sure that the unique constraint always compares between dicts instead of sometimes dealing with nulls.
|
| | |
|
| |\ |
|
| | |
| | |
| | |
| | | |
mock._importer was removed in 3.11
|