aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
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
2023-06-21Write custom get_role func for MockMemberGravatar Chris Lovering-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.
2023-06-21Bump pydis-core from 9.7.0 to 9.8.0Gravatar dependabot[bot]-54/+54
Bumps [pydis-core](https://github.com/python-discord/bot-core) from 9.7.0 to 9.8.0. - [Changelog](https://github.com/python-discord/bot-core/blob/main/docs/changelog.rst) - [Commits](https://github.com/python-discord/bot-core/compare/v9.7.0...v9.8.0) --- updated-dependencies: - dependency-name: pydis-core dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
2023-06-21Remove casing in domain filtering (#2654)Gravatar Boris Muratov-2/+2
The extraction of domains from a message in the filterlist removes casing, but the checks of individual filters kept theirs, which led to some filters not working. This assumes that two URLs that differ only by casing are identical, which isn't necessarily true, but a conflict is very unlikely.
2023-06-21Make new comp filters not pingGravatar mbaruh-1/+2
2023-06-21Allow use of msg reply to add context to incidentGravatar vivekashok1221-1/+3
2023-06-20pre-commit-hooks 2.5.0 -> 4.4.0 (#2640)Gravatar Xithrius-1/+1
2023-06-20Bump pre-commit from 3.3.2 to 3.3.3 (#2643)Gravatar dependabot[bot]-5/+5
Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 3.3.2 to 3.3.3. - [Release notes](https://github.com/pre-commit/pre-commit/releases) - [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md) - [Commits](https://github.com/pre-commit/pre-commit/compare/v3.3.2...v3.3.3) --- updated-dependencies: - dependency-name: pre-commit 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-06-20Bump emoji from 2.5.0 to 2.5.1 (#2644)Gravatar dependabot[bot]-4/+4
Bumps [emoji](https://github.com/carpedm20/emoji) from 2.5.0 to 2.5.1. - [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.5.0...v2.5.1) --- updated-dependencies: - dependency-name: emoji 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-06-20Fix errors in the positional-keyword tagGravatar int-2/+2
2023-06-14Increase help thread timeout 30 -> 60 (#2641)Gravatar Steele Farnsworth-1/+1
2023-06-13Fix missing message unpinning on adding ticket emoji to nomination review. ↵Gravatar Vivek Ashokkumar-4/+1
(#2639)
2023-06-13Remove unnecessary pinning of nomination review message in ↵Gravatar Vivek Ashokkumar-3/+1
#nomination-voting (#2633)
2023-06-12Bump regex from 2023.5.5 to 2023.6.3 (#2637)Gravatar dependabot[bot]-91/+91
Bumps [regex](https://github.com/mrabarnett/mrab-regex) from 2023.5.5 to 2023.6.3. - [Changelog](https://github.com/mrabarnett/mrab-regex/blob/hg/changelog.txt) - [Commits](https://github.com/mrabarnett/mrab-regex/compare/2023.5.5...2023.6.3) --- 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-06-12Bump pydantic from 1.10.8 to 1.10.9 (#2635)Gravatar dependabot[bot]-39/+39
Bumps [pydantic](https://github.com/pydantic/pydantic) from 1.10.8 to 1.10.9. - [Release notes](https://github.com/pydantic/pydantic/releases) - [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md) - [Commits](https://github.com/pydantic/pydantic/compare/v1.10.8...v1.10.9) --- updated-dependencies: - dependency-name: pydantic 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-06-12Bump pytest from 7.3.1 to 7.3.2 (#2636)Gravatar dependabot[bot]-6/+6
Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.3.1 to 7.3.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/7.3.1...7.3.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>
2023-06-12Bump pydis-core from 9.6.0 to 9.7.0 (#2638)Gravatar dependabot[bot]-6/+6
Bumps [pydis-core](https://github.com/python-discord/bot-core) from 9.6.0 to 9.7.0. - [Changelog](https://github.com/python-discord/bot-core/blob/main/docs/changelog.rst) - [Commits](https://github.com/python-discord/bot-core/compare/v9.6.0...v9.7.0) --- updated-dependencies: - dependency-name: pydis-core 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-12Bump rapidfuzz from 3.0.0 to 3.1.1 (#2634)Gravatar dependabot[bot]-95/+95
Bumps [rapidfuzz](https://github.com/maxbachmann/RapidFuzz) from 3.0.0 to 3.1.1. - [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.0.0...v3.1.1) --- 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-06-12Add 'n' alias and 'nom' root alias to 'nominate' command (#2632)Gravatar TizzySaurus-1/+5
2023-06-10Bump ruff from 0.0.267 to 0.0.272 (#2628)Gravatar dependabot[bot]-20/+20
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-10Bump coverage from 7.2.6 to 7.2.7 (#2619)Gravatar dependabot[bot]-54/+63
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-10Bump pytest-cov from 4.0.0 to 4.1.0 (#2616)Gravatar dependabot[bot]-6/+6
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-10Bump sentry-sdk from 1.24.0 to 1.25.1 (#2626)Gravatar dependabot[bot]-6/+6
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-10Bump emoji from 2.2.0 to 2.5.0 (#2627)Gravatar dependabot[bot]-92/+12
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-10Make all roles self-subscribable year round (#2631)Gravatar Bradley Reynolds-3/+3
2023-06-05Update mutability tag to link Nedbat's talk (#2546)Gravatar Greg Taeger-0/+2
Co-authored-by: wookie184 <[email protected]> Co-authored-by: Bradley Reynolds <[email protected]>
2023-06-02Add new profile badgesGravatar Chris Lovering-0/+3
This is so that the user_info command can output them
2023-05-31Escape full stops in Filter.__str__ (#2621)Gravatar ChrisJL-1/+1
Discord sees a number followed by a dot as a potential numbered list, so messes up the numbering when on sequential lines. Escaping the dot disables this discord behaviour.
2023-05-30Temporarily remove suport for evaling under 3.10 (#2618)Gravatar ChrisJL-33/+16
* Temporarily remove suport for evaling under 3.10 This is until snekbox supports multi-version natively https://github.com/python-discord/snekbox/issues/158 * Remove special case 3.11 snekbox container 3.11 is the default in snekbox:latest now, so no need to have a special container. This also removes all notion of there being diferent containers for different snekbox versions
2023-05-29Bump pip-licenses from 4.3.1 to 4.3.2 (#2604)Gravatar dependabot[bot]-5/+5
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-26Bump coverage from 7.2.5 to 7.2.6Gravatar dependabot[bot]-54/+54
Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.2.5 to 7.2.6. - [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.2.5...7.2.6) --- updated-dependencies: - dependency-name: coverage dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>