aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2023-08-11Use a custom type coercion function as pydantic removed their'sGravatar Chris Lovering-12/+43
https://docs.pydantic.dev/latest/migration/#changes-to-handling-of-standard-types > While union types will still attempt validation of each choice from left to right, they now preserve the type of the input whenever possible, even if the correct type is not the first choice for which the input would pass validation
2023-08-11Replace deprecated functions with new pydantic v2 functionsGravatar Chris Lovering-42/+53
2023-08-11Use new Pydantic v2 logic for constant loadingGravatar Chris Lovering-275/+246
2023-08-11Bump pydantic to v2 and install pydantic-settingsGravatar Chris Lovering-71/+166
2023-08-10Bump ruff from 0.0.282 to 0.0.283Gravatar dependabot[bot]-21/+21
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]>
2023-08-09Bump regex from 2023.6.3 to 2023.8.8 (#2711)Gravatar dependabot[bot]-91/+91
Bumps [regex](https://github.com/mrabarnett/mrab-regex) from 2023.6.3 to 2023.8.8. - [Changelog](https://github.com/mrabarnett/mrab-regex/blob/hg/changelog.txt) - [Commits](https://github.com/mrabarnett/mrab-regex/compare/2023.6.3...2023.8.8) --- updated-dependencies: - dependency-name: regex 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>
2023-08-06Bump more-itertools from 10.0.0 to 10.1.0 (#2707)Gravatar dependabot[bot]-5/+5
Bumps [more-itertools](https://github.com/more-itertools/more-itertools) from 10.0.0 to 10.1.0. - [Release notes](https://github.com/more-itertools/more-itertools/releases) - [Commits](https://github.com/more-itertools/more-itertools/commits) --- updated-dependencies: - dependency-name: more-itertools 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>
2023-08-06Fix docs link markdown (#2708)Gravatar Numerlor-0/+2
2023-08-05Change DM users get when warned (#2696)Gravatar Steele Farnsworth-13/+31
2023-08-03Bump rapidfuzz from 3.1.2 to 3.2.0 (#2706)Gravatar dependabot[bot]-95/+95
Bumps [rapidfuzz](https://github.com/maxbachmann/RapidFuzz) from 3.1.2 to 3.2.0. - [Release notes](https://github.com/maxbachmann/RapidFuzz/releases) - [Changelog](https://github.com/maxbachmann/RapidFuzz/blob/main/CHANGELOG.rst) - [Commits](https://github.com/maxbachmann/RapidFuzz/compare/v3.1.2...v3.2.0) --- updated-dependencies: - dependency-name: rapidfuzz 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>
2023-08-02Bump ruff from 0.0.280 to 0.0.282 (#2703)Gravatar dependabot[bot]-20/+20
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.280 to 0.0.282. - [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.280...v0.0.282) --- 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>
2023-08-02Bump sentry-sdk from 1.29.1 to 1.29.2 (#2704)Gravatar dependabot[bot]-5/+5
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 1.29.1 to 1.29.2. - [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/1.29.1...1.29.2) --- updated-dependencies: - dependency-name: sentry-sdk 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>
2023-08-02Bump taskipy from 1.11.0 to 1.12.0 (#2699)Gravatar dependabot[bot]-5/+5
Bumps [taskipy](https://github.com/taskipy/taskipy) from 1.11.0 to 1.12.0. - [Commits](https://github.com/taskipy/taskipy/compare/1.11.0...1.12.0) --- updated-dependencies: - dependency-name: taskipy 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>
2023-08-02Bump sentry-sdk from 1.28.1 to 1.29.1 (#2702)Gravatar dependabot[bot]-5/+5
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 1.28.1 to 1.29.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/1.28.1...1.29.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>
2023-07-25Bump emoji from 2.6.0 to 2.7.0 (#2693)Gravatar dependabot[bot]-4/+4
Bumps [emoji](https://github.com/carpedm20/emoji) from 2.6.0 to 2.7.0. - [Release notes](https://github.com/carpedm20/emoji/releases) - [Changelog](https://github.com/carpedm20/emoji/blob/master/CHANGES.md) - [Commits](https://github.com/carpedm20/emoji/compare/v2.6.0...v2.7.0) --- updated-dependencies: - dependency-name: emoji 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>
2023-07-25Bump more-itertools from 9.1.0 to 10.0.0 (#2694)Gravatar dependabot[bot]-6/+17
Bumps [more-itertools](https://github.com/more-itertools/more-itertools) from 9.1.0 to 10.0.0. - [Release notes](https://github.com/more-itertools/more-itertools/releases) - [Commits](https://github.com/more-itertools/more-itertools/compare/v9.1.0...v10.0.0) --- updated-dependencies: - dependency-name: more-itertools 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>
2023-07-24Remove unused noqa directiveGravatar Chris Lovering-1/+1
2023-07-24Ignore RUF015 linting ruleGravatar Chris Lovering-1/+1
This rule is Prefer next(iter({iterable})) over list({iterable})[0] which we don't agree with
2023-07-24Bump ruff from 0.0.277 to 0.0.280Gravatar dependabot[bot]-34/+23
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.277 to 0.0.280. - [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.277...v0.0.280) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
2023-07-24Bump deepdiff from 6.3.0 to 6.3.1 (#2673)Gravatar dependabot[bot]-5/+5
Bumps [deepdiff](https://github.com/seperman/deepdiff) from 6.3.0 to 6.3.1. - [Release notes](https://github.com/seperman/deepdiff/releases) - [Changelog](https://github.com/seperman/deepdiff/blob/master/docs/changelog.rst) - [Commits](https://github.com/seperman/deepdiff/compare/6.3.0...6.3.1) --- updated-dependencies: - dependency-name: deepdiff 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>
2023-07-24Bump rapidfuzz from 3.1.1 to 3.1.2 (#2689)Gravatar dependabot[bot]-95/+95
Bumps [rapidfuzz](https://github.com/maxbachmann/RapidFuzz) from 3.1.1 to 3.1.2. - [Release notes](https://github.com/maxbachmann/RapidFuzz/releases) - [Changelog](https://github.com/maxbachmann/RapidFuzz/blob/main/CHANGELOG.rst) - [Commits](https://github.com/maxbachmann/RapidFuzz/compare/v3.1.1...v3.1.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>
2023-07-22Properly capitalize "Python" in tags (#2690)Gravatar jchristgit-8/+8
Closes python-discord/site#1044.
2023-07-22remove unused dependencies.Gravatar shtlrs-141/+127
2023-07-20Bump aiohttp from 3.8.4 to 3.8.5Gravatar dependabot[bot]-90/+90
Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.8.4 to 3.8.5. - [Release notes](https://github.com/aio-libs/aiohttp/releases) - [Changelog](https://github.com/aio-libs/aiohttp/blob/v3.8.5/CHANGES.rst) - [Commits](https://github.com/aio-libs/aiohttp/compare/v3.8.4...v3.8.5) --- updated-dependencies: - dependency-name: aiohttp dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]>
2023-07-13Bump sentry-sdk from 1.28.0 to 1.28.1Gravatar dependabot[bot]-5/+16
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 1.28.0 to 1.28.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/1.28.0...1.28.1) --- updated-dependencies: - dependency-name: sentry-sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
2023-07-11Allow the url used for the paste service to be overwrittenGravatar Chris Lovering-10/+16
2023-07-11Update paste tag for new paste serviceGravatar Chris Lovering-1/+1
2023-07-11Bump bot-core to 9.9.2Gravatar Chris Lovering-98/+89
2023-07-11Mock _lexers_supported_by_pastebin in test to ensure no call to external ↵Gravatar Chris Lovering-5/+8
service is made
2023-07-11Remove unneeded paste service constantGravatar Chris Lovering-1/+0
2023-07-11Use the new pydis_core send_to_paste_service functionGravatar Chris Lovering-206/+40
2023-07-11Additional potential symbols in valid invites (#2663)Gravatar Boris Muratov-3/+3
* Additional potential symbols in valid invites * Align comments
2023-07-11Bump sentry-sdk from 1.26.0 to 1.28.0 (#2676)Gravatar dependabot[bot]-5/+14
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-09Fix some test warnings (#2675)Gravatar wookie184-17/+26
* 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.
2023-07-08Optimise startup time (#2662)Gravatar ChrisJL-50/+29
* Defer fetching webhooks for python news until first loop, rather than startup * Defer fetching webhook for buck pond until first duckify, rather than startup * Use get_or_fetch channel for getting big brother channel at startup * Defer fetching peps until first time command is ran * Don't load extensions in a task BotBase.load_extentions now creates a task by default, so there's no need for us to do this too.
2023-07-06Bump ruff from 0.0.275 to 0.0.277 (#2667)Gravatar dependabot[bot]-49/+49
* Bump ruff from 0.0.275 to 0.0.277 Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.275 to 0.0.277. - [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.275...v0.0.277) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Appeased the linter --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Xithrius <[email protected]>
2023-07-06Undo sentry updateGravatar wookie184-5/+5
2023-07-06Bump lxml from 4.9.2 to 4.9.3 (#2668)Gravatar dependabot[bot]-81/+85
Bumps [lxml](https://github.com/lxml/lxml) from 4.9.2 to 4.9.3. - [Release notes](https://github.com/lxml/lxml/releases) - [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt) - [Commits](https://github.com/lxml/lxml/compare/lxml-4.9.2...lxml-4.9.3) --- updated-dependencies: - dependency-name: lxml 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>
2023-07-06Bump sentry-sdk from 1.26.0 to 1.27.0 (#2664)Gravatar dependabot[bot]-5/+5
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 1.26.0 to 1.27.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/1.26.0...1.27.0) --- 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>
2023-06-30Bump emoji from 2.5.1 to 2.6.0 (#2659)Gravatar dependabot[bot]-4/+4
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-26Bump HassanAbouelela/actions from setup-python_v1.4.0 to 1.4.1Gravatar dependabot[bot]-1/+1
Bumps [HassanAbouelela/actions](https://github.com/hassanabouelela/actions) from setup-python_v1.4.0 to 1.4.1. This release includes the previously tagged commit. - [Release notes](https://github.com/hassanabouelela/actions/releases) - [Commits](https://github.com/hassanabouelela/actions/compare/setup-python_v1.4.0...setup-python_v1.4.1) --- updated-dependencies: - dependency-name: HassanAbouelela/actions dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]>
2023-06-25Bump ruff from 0.0.272 to 0.0.274 (#2651)Gravatar dependabot[bot]-53/+76
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Chris Lovering <[email protected]>
2023-06-24Bump pytest from 7.3.2 to 7.4.0 (#2656)Gravatar dependabot[bot]-5/+5
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-23Bump pydis-core from 9.8.0 to 9.9.1 (#2657)Gravatar dependabot[bot]-5/+5
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-23Swap the order of interaction resposnes in sub cogGravatar Chris Lovering-7/+10
interaction.followup is only available after interaction.response is successfully used. Since interaction.response.edit_message can fail, using interaction.followup afterwards is incorrect. By swapping the order around here, we guarantee that a followup webhook is available.
2023-06-23Remove logic around when a role is availableGravatar Chris Lovering-44/+10
This was deemed not needed, so removing it from the code makes the cog easier to read.
2023-06-23Don't have interaction_owner as a class varGravatar Chris Lovering-10/+1
Having it as a class var means that it is shared with all instances of the class, which we definitely do not want.
2023-06-23Bump sentry-sdk from 1.25.1 to 1.26.0 (#2655)Gravatar dependabot[bot]-5/+6
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-21Update NOMINATION_MESSAGE_REGEX for new discord.User.__str__ behaviourGravatar Chris Lovering-1/+1
2023-06-21Update MockAttachment data with new expected fieldsGravatar Chris Lovering-1/+12