aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2022-09-18remove duplicate final rule numbers then sortGravatar Amrou Bellalouna-1/+1
2022-09-18remove unreachable codeGravatar Amrou Bellalouna-8/+0
2022-09-18rename pick to rule_numberGravatar Amrou Bellalouna-2/+2
2022-09-18rename index to rule_numberGravatar Amrou Bellalouna-1/+3
2022-09-18stop matching keywords when they're invalid upon triaging the rule numbers & ↵Gravatar Amrou Bellalouna-19/+17
keywords
2022-09-18stop matching as soon as an invalid kw is encounteredGravatar Amrou Bellalouna-11/+22
2022-09-16remove help message that displays the available keywords per ruleGravatar Amrou Bellalouna-8/+2
2022-09-16rename rules to rule_numbersGravatar Amrou Bellalouna-7/+7
2022-09-16replace .isdigit predicate with a try except blockGravatar Amrou Bellalouna-2/+2
2022-09-16fix typo in docstringsGravatar Amrou Bellalouna-1/+1
2022-09-16use the cached channels instead of fetching them with each command executionGravatar Amrou Bellalouna-4/+2
2022-09-16suggest adding a keyword in dev & meta channelsGravatar Amrou Bellalouna-3/+6
2022-09-16add missing blank lineGravatar Amrou Bellalouna-0/+1
2022-09-16accept keywords and rule numbers in any orderGravatar Amrou Bellalouna-19/+39
2022-09-16send the "no-match" error message in pure text formatGravatar Amrou Bellalouna-5/+2
2022-09-16send the list of pre-defined keywords along with each invoked ruleGravatar Amrou Bellalouna-2/+7
2022-09-16add support for keywords when using the "rules" command.Gravatar Amrou Bellalouna-4/+18
This doesn't change the way the rules command originally worked and keeps the priority to rule numbers. But in case a number (or numbers) is not supplied, it will try to find a rule that maps to a the supplied keyword.
2022-09-16fix "isistance" typoGravatar Amrou Bellalouna-1/+1
2022-09-12Don't use fake in-project venvs for poetryGravatar Chris Lovering-21/+13
Instead let poetry install the venv for the project in the right place, leading to a more 'traditional' poetry setup.
2022-09-11suggest adding a keyword in dev & meta channelsGravatar Amrou Bellalouna-3/+6
2022-09-11add missing blank lineGravatar Amrou Bellalouna-0/+1
2022-09-11accept keywords and rule numbers in any orderGravatar Amrou Bellalouna-19/+39
2022-09-11Bump poetry in Docker and lint to 1.2.0Gravatar Chris Lovering-1/+1
2022-09-11Use HassanAbouelela/setup-python for CIGravatar Chris Lovering-57/+5
2022-09-10Use venvs with poetry in DockerfileGravatar Chris Lovering-6/+16
This is required due to a regression in poetry, see https://github.com/HassanAbouelela/actions/pull/7
2022-09-08send the "no-match" error message in pure text formatGravatar Amrou Bellalouna-5/+2
2022-09-08send the list of pre-defined keywords along with each invoked ruleGravatar Amrou Bellalouna-2/+7
2022-08-19Duration for DM changed to Edited flagGravatar ionite34-10/+7
2022-08-19add support for keywords when using the "rules" command.Gravatar Amrou Bellalouna-4/+18
This doesn't change the way the rules command originally worked and keeps the priority to rule numbers. But in case a number (or numbers) is not supplied, it will try to find a rule that maps to a the supplied keyword.
2022-08-19fix "isistance" typoGravatar Amrou Bellalouna-1/+1
2022-08-18fix: don't include replied mentions in mention filter (#2017)Gravatar arl-12/+124
Co-authored-by: Izan <[email protected]> Co-authored-by: TizzySaurus <[email protected]> Co-authored-by: Xithrius <[email protected]>
2022-08-18Check if channel.guild is NoneGravatar Dorukyum-1/+1
2022-08-18Made DM duration remaining optional with resendGravatar ionite34-6/+8
2022-08-17fix: replace datetime.utcnow() with arrowGravatar dawnofmidnight-4/+4
2022-08-16Added article to automute messageGravatar ionite34-1/+1
2022-08-16Removed unused datetime importGravatar ionite34-1/+0
2022-08-16Updated infractions display for updatesGravatar ionite34-23/+59
- Added new infraction delta calculations to updated infractions. - Updates of infraction durations now also update the `last_applied` field. - `inserted_at` is now sent by the bot client to denote the original unmodified infraction application time
2022-08-16Corrected test use of utcnowGravatar ionite34-1/+1
Corrected test case to use `datetime.utcnow()` to be consistent with target
2022-08-16Updated previous tests to use subset methodGravatar ionite34-7/+5
2022-08-16Refactored test to not use datetime patchGravatar ionite34-8/+11
- Used new method of dict subset comparison instead of datetime patching for better compat. with argument types
2022-08-16Removed `inserted_at` fallbackGravatar ionite34-13/+5
Given API updates, the fallback is not needed
2022-08-16Changed datetime.now to arrow.utcnowGravatar ionite34-2/+2
- Used arrow.utcnow to reduce complexity and import
2022-08-16Infraction duration fallback if no `last_applied` fieldGravatar ionite34-2/+13
2022-08-16Added microsecond rounding for `humanize_delta`Gravatar ionite34-1/+16
2022-08-16Added new expiry usage to applyGravatar ionite34-1/+1
- Added new usage of `last_applied` time for duration calculation in `apply_infraction`
2022-08-16Use `last_applied` to display durationGravatar ionite34-1/+2
2022-08-16Correct last_applied formattingGravatar ionite34-1/+1
2022-08-16Fixed testsGravatar ionite34-6/+7
- Corrected datetime patching
2022-08-16Updated ban command docstringGravatar ionite34-2/+4
- Updated docstring to be more explicit on parameter fields
2022-08-16Updated parameter namesGravatar ionite34-5/+5
- Changed `duration` parameter names to `duration_or_expiry` to more accurately reflect options for help