aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2024-07-15Bump pip-licenses from 4.4.0 to 4.5.1 (#3121)Gravatar dependabot[bot]-6/+7
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-15Bump sentry-sdk from 2.9.0 to 2.10.0 (#3125)Gravatar dependabot[bot]-5/+5
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-15Bump ruff from 0.5.1 to 0.5.2 (#3123)Gravatar dependabot[bot]-21/+21
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-15Bump markdownify from 0.12.1 to 0.13.1 (#3124)Gravatar dependabot[bot]-5/+5
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-15Bump coverage from 7.5.4 to 7.6.0 (#3119)Gravatar dependabot[bot]-55/+55
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-15Bump setuptools from 69.2.0 to 70.0.0 in the pip group (#3127)Gravatar dependabot[bot]-6/+5
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-14Suppress ResponseCodeErrors when fetching alts in !userGravatar Joe Banks-2/+10
2024-07-14Bump sentry-sdk from 2.7.1 to 2.9.0Gravatar dependabot[bot]-5/+5
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 2.7.1 to 2.9.0. - [Release notes](https://github.com/getsentry/sentry-python/releases) - [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-python/compare/2.7.1...2.9.0) --- updated-dependencies: - dependency-name: sentry-sdk dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
2024-07-14Remove Redis max connections limitGravatar Joe Banks-1/+0
The server limit is more than capable of handling any traffic that bot generates, this number is unreasonably low for events that happen in bulk/surges. For reference, the Redis server connection limit is in the thousands.
2024-07-08Bump pytest-subtests from 0.12.1 to 0.13.0 (#3114)Gravatar dependabot[bot]-5/+5
Bumps [pytest-subtests](https://github.com/pytest-dev/pytest-subtests) from 0.12.1 to 0.13.0. - [Release notes](https://github.com/pytest-dev/pytest-subtests/releases) - [Changelog](https://github.com/pytest-dev/pytest-subtests/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest-subtests/compare/v0.12.1...v0.13.0) --- updated-dependencies: - dependency-name: pytest-subtests dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-08Make !warn fail if DMing the user is unsuccessful (#3073)Gravatar Vivek Ashokkumar-11/+19
2024-07-08Bump ruff from 0.5.0 to 0.5.1 (#3116)Gravatar dependabot[bot]-21/+21
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.5.0 to 0.5.1. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/0.5.0...0.5.1) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-06Bump certifi from 2024.2.2 to 2024.7.4 in the pip group (#3113)Gravatar dependabot[bot]-4/+4
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-05Migration to official Sentry release CI action (#3112)Gravatar Xithrius-3/+2
2024-07-04Bump rapidfuzz from 3.9.3 to 3.9.4 (#3110)Gravatar dependabot[bot]-96/+96
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-04Bump sentry-sdk from 2.7.0 to 2.7.1 (#3108)Gravatar dependabot[bot]-6/+6
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-04Bump ruff from 0.4.10 to 0.5.0 (#3107)Gravatar dependabot[bot]-20/+21
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-28Bump coverage from 7.5.3 to 7.5.4 (#3102)Gravatar dependabot[bot]-55/+55
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-27Bump sentry-sdk from 2.6.0 to 2.7.0 (#3105)Gravatar dependabot[bot]-6/+6
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-24Add new name kwarg to silencer loop base class initialisationGravatar Joe Banks-1/+2
Discord.py 2.4 added an optional name parameter to the base Loop class which our silence notifier loop is based off. We need to pass that, even if it's None, to prevent a missing argument error.
2024-06-23Bump pydis-core from 11.1.0 to 11.2.0Gravatar dependabot[bot]-13/+13
Bumps [pydis-core](https://github.com/python-discord/bot-core) from 11.1.0 to 11.2.0. - [Release notes](https://github.com/python-discord/bot-core/releases) - [Changelog](https://github.com/python-discord/bot-core/blob/main/docs/changelog.rst) - [Commits](https://github.com/python-discord/bot-core/compare/v11.1.0...v11.2.0) --- updated-dependencies: - dependency-name: pydis-core dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
2024-06-21Skip line if no match against inventory line regex (#3100)Gravatar Joe Banks-0/+7
2024-06-21Bump urllib3 from 2.2.1 to 2.2.2 in the pip group (#3097)Gravatar dependabot[bot]-3/+3
Bumps the pip group with 1 update: [urllib3](https://github.com/urllib3/urllib3). Updates `urllib3` from 2.2.1 to 2.2.2 - [Release notes](https://github.com/urllib3/urllib3/releases) - [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst) - [Commits](https://github.com/urllib3/urllib3/compare/2.2.1...2.2.2) --- updated-dependencies: - dependency-name: urllib3 dependency-type: indirect dependency-group: pip ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-21Bump ruff from 0.4.8 to 0.4.10 (#3099)Gravatar dependabot[bot]-20/+20
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-21Bump taskipy from 1.12.2 to 1.13.0 (#3094)Gravatar dependabot[bot]-6/+6
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-21Bump sentry-sdk from 2.5.1 to 2.6.0 (#3098)Gravatar dependabot[bot]-6/+7
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-17Bump docker/build-push-action from 5 to 6 (#3096)Gravatar dependabot[bot]-1/+1
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5 to 6. - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](https://github.com/docker/build-push-action/compare/v5...v6) --- updated-dependencies: - dependency-name: docker/build-push-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-13Fix site startup command used in docker-compose.yml (#3093)Gravatar wookie184-1/+1
Needed as entrypoint was changed in python-discord/site#1338
2024-06-11Add poetry-plugin-export plugin to fix CI warningGravatar wookie184-0/+1
2024-06-11Update old redis version in docker-composeGravatar wookie184-1/+1
2024-06-11Fix testsGravatar wookie184-4/+4
2024-06-11Remove more_itertools now it's unusedGravatar wookie184-15/+2
2024-06-11Use new itertool.batched instead of more_itertools.chunkedGravatar wookie184-3/+3
2024-06-11Bump ruff from 0.4.6 to 0.4.8 (#3085)Gravatar dependabot[bot]-20/+20
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.4.6 to 0.4.8. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/v0.4.6...v0.4.8) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-11Bump sentry-sdk from 2.4.0 to 2.5.1 (#3088)Gravatar dependabot[bot]-5/+5
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 2.4.0 to 2.5.1. - [Release notes](https://github.com/getsentry/sentry-python/releases) - [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-python/compare/2.4.0...2.5.1) --- updated-dependencies: - dependency-name: sentry-sdk dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-11Bump pytest from 8.2.1 to 8.2.2 (#3084)Gravatar dependabot[bot]-5/+5
Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.2.1 to 8.2.2. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/8.2.1...8.2.2) --- updated-dependencies: - dependency-name: pytest dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-11Bump rapidfuzz from 3.9.2 to 3.9.3 (#3082)Gravatar dependabot[bot]-96/+96
Bumps [rapidfuzz](https://github.com/rapidfuzz/RapidFuzz) from 3.9.2 to 3.9.3. - [Release notes](https://github.com/rapidfuzz/RapidFuzz/releases) - [Changelog](https://github.com/rapidfuzz/RapidFuzz/blob/main/CHANGELOG.rst) - [Commits](https://github.com/rapidfuzz/RapidFuzz/compare/v3.9.2...v3.9.3) --- updated-dependencies: - dependency-name: rapidfuzz dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-10Bump tclindner/sentry-releases-action from 1.2.0 to 1.3.0Gravatar dependabot[bot]-1/+1
Bumps [tclindner/sentry-releases-action](https://github.com/tclindner/sentry-releases-action) from 1.2.0 to 1.3.0. - [Release notes](https://github.com/tclindner/sentry-releases-action/releases) - [Changelog](https://github.com/tclindner/sentry-releases-action/blob/master/CHANGELOG.md) - [Commits](https://github.com/tclindner/sentry-releases-action/compare/v1.2.0...v1.3.0) --- updated-dependencies: - dependency-name: tclindner/sentry-releases-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
2024-06-04Bump sentry-sdk from 2.3.1 to 2.4.0Gravatar dependabot[bot]-5/+5
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 2.3.1 to 2.4.0. - [Release notes](https://github.com/getsentry/sentry-python/releases) - [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-python/compare/2.3.1...2.4.0) --- updated-dependencies: - dependency-name: sentry-sdk dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
2024-05-31Bump rapidfuzz from 3.9.1 to 3.9.2 (#3080)Gravatar dependabot[bot]-96/+96
Bumps [rapidfuzz](https://github.com/rapidfuzz/RapidFuzz) from 3.9.1 to 3.9.2. - [Release notes](https://github.com/rapidfuzz/RapidFuzz/releases) - [Changelog](https://github.com/rapidfuzz/RapidFuzz/blob/main/CHANGELOG.rst) - [Commits](https://github.com/rapidfuzz/RapidFuzz/compare/v3.9.1...v3.9.2) --- updated-dependencies: - dependency-name: rapidfuzz dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-31Bump ruff from 0.4.5 to 0.4.6 (#3079)Gravatar dependabot[bot]-20/+20
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.4.5 to 0.4.6. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/v0.4.5...v0.4.6) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-31Bump coverage from 7.5.1 to 7.5.3 (#3078)Gravatar dependabot[bot]-55/+55
Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.5.1 to 7.5.3. - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](https://github.com/nedbat/coveragepy/compare/7.5.1...7.5.3) --- updated-dependencies: - dependency-name: coverage dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-25Selectively patch SilenceNotifier only where neededGravatar wookie184-14/+19
Improves performance and makes other tests more realistic
2024-05-25Just use the notifier instead of patchingGravatar wookie184-14/+18
I combined two tests into one where it made sense. This is much neater and makes for better tests
2024-05-25Don't setup the cog for Notifier and Argument Parser testsGravatar wookie184-8/+10
None of these tests need Redis or anything set by cog_load and setting them up for every test slows things down
2024-05-25Make use of fakeredis instead of mockingGravatar wookie184-29/+24
This is cleaner, and better practice.
2024-05-25Lazily create `guild` on text/voice channel mocksGravatar wookie184-2/+12
In many cases the Guild mock is not needed so this makes tests faster
2024-05-25Specify environment variable using env blockGravatar wookie184-1/+4
Co-authored-by: Joe Banks <[email protected]>
2024-05-25Use COVERAGE_CORE=sysmon when running tests in CIGravatar wookie184-1/+1
2024-05-23Remove space from command nameGravatar Chris Lovering-1/+1