aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2024-05-22Add get_active_nomination API method for TalentpoolGravatar Joe Banks-0/+9
2024-05-22Add new Nomination API filter to filter to active votesGravatar Joe Banks-0/+3
2024-05-21---Gravatar dependabot[bot]-6/+6
updated-dependencies: - dependency-name: sentry-sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
2024-05-21Add feature to append additional text to nomination reasons (#3000)Gravatar Esther Goldberg-0/+82
* Add feature to append additional text to nomination reasons * Add feature to append additional text to nomination reasons * handle 404 error from get_nomination * Apply suggestions from code review Co-authored-by: wookie184 <[email protected]> * throw error if new reason is not provided * handle empty string in old_reason * remove error message because issue is already handled in a try/except Co-authored-by: wookie184 <[email protected]> --------- Co-authored-by: wookie184 <[email protected]>
2024-05-20Bump emoji from 2.11.1 to 2.12.1 (#3059)Gravatar dependabot[bot]-7/+10
Bumps [emoji](https://github.com/carpedm20/emoji) from 2.11.1 to 2.12.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.11.1...v2.12.1) --- 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>
2024-05-20Bump pytest from 8.2.0 to 8.2.1 (#3060)Gravatar dependabot[bot]-5/+5
Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.2.0 to 8.2.1. - [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.0...8.2.1) --- 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-05-20Bump rapidfuzz from 3.9.0 to 3.9.1 (#3058)Gravatar dependabot[bot]-93/+100
Bumps [rapidfuzz](https://github.com/rapidfuzz/RapidFuzz) from 3.9.0 to 3.9.1. - [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.0...v3.9.1) --- 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-19Copy status_embed workflow from sir-lancebot (#3057)Gravatar wookie184-24/+6
2024-05-18Bump sentry-sdk from 2.1.1 to 2.2.0 (#3052)Gravatar dependabot[bot]-5/+5
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-18Update tests for new autonomination threshold logicGravatar Joe Banks-5/+35
2024-05-18Allow for more than 3 nomination votes if others are ticketedGravatar Joe Banks-4/+20
This changes how we calculate whether we are ready for another vote in the talentpool autonomination system. Instead of hard-locking at 3 votes in the pool, we factor in whether an admin-task has been created for the vote (signified by a reaction with the :ticket: emoji). We allow for up to 10 votes to be in the pool total, which in theory allows 3 active votes and 7 votes waiting on the admin-task completion (though we should never hit this threshold realistically). This should allow for voting to be more or less continuous and ensure there is always new votes in the pool and we are not blocked on the completion of a Helpering/waiting for a Helper candidate to be available for a new vote to start. The thresholds are based on those suggested in the nomination-discussion moderator channel.
2024-05-17Push raw to pastebin if too long for Discord (#3038)Gravatar ChrisJL-8/+26
2024-05-17Bump regex from 2024.5.10 to 2024.5.15 (#3053)Gravatar dependabot[bot]-82/+82
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-14Improve cancel staff infraction button colours and text (#2980)Gravatar Robin-6/+6
* Change color of cancel button from green to gray * Change "confirm" label to "ban" * Make docstring for confirm callback more accurate Co-authored-by: Vivek Ashokkumar <[email protected]> * Rename "InfractionConfirmationView" to "BanConfirmationView" --------- Co-authored-by: Vivek Ashokkumar <[email protected]>
2024-05-14Update Metabase URLGravatar Joe Banks-1/+1
2024-05-13Bump lxml from 5.2.1 to 5.2.2 (#3049)Gravatar dependabot[bot]-157/+141
Bumps [lxml](https://github.com/lxml/lxml) from 5.2.1 to 5.2.2. - [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-5.2.1...lxml-5.2.2) --- 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>
2024-05-13Bump pre-commit from 3.7.0 to 3.7.1 (#3048)Gravatar dependabot[bot]-5/+5
Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 3.7.0 to 3.7.1. - [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.7.0...v3.7.1) --- 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>
2024-05-13Check length of nomination reason before attempting to send to site APIGravatar Joe Banks-0/+7
This ensures we will not attempt to send a reason that is longer than the REASON_MAX_CHARS value, which can quickly be reached through the addition of message links in context.
2024-05-13Move from sentry_sdk.push_scope to sentry_sdk.new_scopeGravatar Joe Banks-9/+9
2024-05-13Add new context menu command for nominating usersGravatar Joe Banks-1/+153
This command either updates or creates a nomination for the author of the selected message, including a hyperlink to the selected message. Hopefully the benefits that this additional context brings as well as the reduced bar of entry for creating nominations will enhance the talentpool recruitment system.
2024-05-13Add new Talentpool API method for fetching a nomination reasonGravatar Joe Banks-0/+11
2024-05-11Bump ruff from 0.4.3 to 0.4.4 (#3043)Gravatar dependabot[bot]-20/+20
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-11Bump regex from 2024.4.28 to 2024.5.10 (#3044)Gravatar dependabot[bot]-82/+82
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-08Bump rapidfuzz from 3.8.1 to 3.9.0 (#3039)Gravatar dependabot[bot]-93/+93
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-08Bump sentry-sdk from 2.0.1 to 2.1.1 (#3040)Gravatar dependabot[bot]-5/+8
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-08Bump coverage from 7.5.0 to 7.5.1 (#3041)Gravatar dependabot[bot]-55/+55
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-06Bump ruff from 0.4.2 to 0.4.3 (#3042)Gravatar dependabot[bot]-21/+20
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.4.2 to 0.4.3. - [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.2...v0.4.3) --- 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-04-29Bump HassanAbouelela/actions from setup-python_v1.4.2 to 1.5.0 (#3036)Gravatar dependabot[bot]-1/+1
Bumps [HassanAbouelela/actions](https://github.com/hassanabouelela/actions) from setup-python_v1.4.2 to 1.5.0. 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.2...setup-python_v1.5.0) --- updated-dependencies: - dependency-name: HassanAbouelela/actions dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-29Bump regex from 2024.4.16 to 2024.4.28 (#3035)Gravatar dependabot[bot]-97/+83
Bumps [regex](https://github.com/mrabarnett/mrab-regex) from 2024.4.16 to 2024.4.28. - [Changelog](https://github.com/mrabarnett/mrab-regex/blob/hg/changelog.txt) - [Commits](https://github.com/mrabarnett/mrab-regex/compare/2024.4.16...2024.4.28) --- updated-dependencies: - dependency-name: regex 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-04-29Bump pytest-xdist from 3.5.0 to 3.6.1 (#3034)Gravatar dependabot[bot]-12/+12
Bumps [pytest-xdist](https://github.com/pytest-dev/pytest-xdist) from 3.5.0 to 3.6.1. - [Release notes](https://github.com/pytest-dev/pytest-xdist/releases) - [Changelog](https://github.com/pytest-dev/pytest-xdist/blob/master/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest-xdist/compare/v3.5.0...v3.6.1) --- updated-dependencies: - dependency-name: pytest-xdist 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-04-29Bump pytest from 8.1.1 to 8.2.0 (#3033)Gravatar dependabot[bot]-10/+10
Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.1.1 to 8.2.0. - [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.1.1...8.2.0) --- updated-dependencies: - dependency-name: pytest 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-04-28Notify help threads if the owner is no longer on the server (#3022)Gravatar wookie184-0/+16
Co-authored-by: ~hedy <[email protected]>
2024-04-27Update system-python.md: Improve bullet point formatting (#3029)Gravatar Bruno Rodrigues dos Santos-3/+0
2024-04-27Removed rich embed filter as its no longer necessary. (#3013)Gravatar Hash-51/+0
2024-04-27Use correct key to check if infraction has expiry (#3021)Gravatar wookie184-4/+7
2024-04-27Bump ruff from 0.4.1 to 0.4.2 (#3030)Gravatar dependabot[bot]-20/+20
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-27Bump sentry-sdk from 1.45.0 to 2.0.1 (#3031)Gravatar dependabot[bot]-7/+7
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-25Bump coverage from 7.4.4 to 7.5.0 (#3027)Gravatar dependabot[bot]-55/+55
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-22Bump emoji from 2.11.0 to 2.11.1 (#3026)Gravatar dependabot[bot]-5/+5
Bumps [emoji](https://github.com/carpedm20/emoji) from 2.11.0 to 2.11.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.11.0...v2.11.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>
2024-04-20Bump ruff from 0.3.7 to 0.4.1 (#3025)Gravatar dependabot[bot]-20/+20
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.3.7 to 0.4.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/v0.3.7...v0.4.1) --- updated-dependencies: - dependency-name: ruff 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-04-17Bump regex from 2023.12.25 to 2024.4.16 (#3020)Gravatar dependabot[bot]-96/+96
Bumps [regex](https://github.com/mrabarnett/mrab-regex) from 2023.12.25 to 2024.4.16. - [Changelog](https://github.com/mrabarnett/mrab-regex/blob/hg/changelog.txt) - [Commits](https://github.com/mrabarnett/mrab-regex/compare/2023.12.25...2024.4.16) --- updated-dependencies: - dependency-name: regex 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-04-17Bump aiohttp from 3.9.4 to 3.9.5 (#3019)Gravatar dependabot[bot]-79/+79
Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.9.4 to 3.9.5. - [Release notes](https://github.com/aio-libs/aiohttp/releases) - [Changelog](https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst) - [Commits](https://github.com/aio-libs/aiohttp/compare/v3.9.4...v3.9.5) --- updated-dependencies: - dependency-name: aiohttp 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-04-16Bump aiohttp from 3.9.3 to 3.9.4 (#3016)Gravatar dependabot[bot]-79/+79
Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.9.3 to 3.9.4. - [Release notes](https://github.com/aio-libs/aiohttp/releases) - [Changelog](https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst) - [Commits](https://github.com/aio-libs/aiohttp/compare/v3.9.3...v3.9.4) --- updated-dependencies: - dependency-name: aiohttp 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-04-15Update Redis service addressGravatar Joe Banks-1/+1
2024-04-15Update metabase namespaceGravatar Joe Banks-1/+1
2024-04-15Update site namespace in constantsGravatar Joe Banks-1/+1
2024-04-15Update snekbox namespaceGravatar Joe Banks-1/+1
2024-04-15Update comment for clarity on skipping adding of phishing buttonGravatar Vivek Ashokkumar-1/+2
2024-04-14Update deployment namespaceGravatar Joe Banks-1/+2
2024-04-14Bump deepdiff from 6.7.1 to 7.0.1 (#3008)Gravatar dependabot[bot]-8/+8
Bumps [deepdiff](https://github.com/seperman/deepdiff) from 6.7.1 to 7.0.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.7.1...7.0.1) --- updated-dependencies: - dependency-name: deepdiff 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>