aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2022-09-20move DEFAULT_RULES_DESCRIPTION under information.pyGravatar Amrou Bellalouna-9/+7
2022-09-19use subTest to isolate assertionsGravatar Amrou Bellalouna-14/+17
2022-09-19add DEFAULT_RULES_DESCRIPTION to avoid duplicationGravatar Amrou Bellalouna-13/+10
2022-09-19fix redundant test nameGravatar Amrou Bellalouna-1/+1
2022-09-19test the cases where default rules message is supposed to be sentGravatar Amrou Bellalouna-0/+31
2022-09-19fix wrong type hint of the rules function return valueGravatar Amrou Bellalouna-2/+2
2022-09-19add test that checks for the sent content if one invalid index is present in ↵Gravatar Amrou Bellalouna-0/+46
the input
2022-09-19return final list of rule numbers to be sentGravatar Amrou Bellalouna-2/+4
2022-09-19sort the list of final rule numbersGravatar Amrou Bellalouna-1/+1
2022-09-18determine final_rule_numbers value by subscribing to the ↵Gravatar Amrou Bellalouna-9/+2
keyword_to_rule_number using the matched keywords
2022-09-18subscribe directly to the keyword_to_rule_number dict instead of using .getGravatar Amrou Bellalouna-1/+2
2022-09-18remove redundant use of list transformation when sorting final rule numbersGravatar Amrou Bellalouna-1/+1
2022-09-18Moved `escape_markdown` after Truthy check (#2279)Gravatar Ionite-2/+3
2022-09-18replace the keywords set with a dict that maps each keyword to its rule numberGravatar Amrou Bellalouna-8/+6
2022-09-18enumerate full_rules with a start index of 1Gravatar Amrou Bellalouna-2/+2
2022-09-18remove useless initial sorting of keywordsGravatar Amrou Bellalouna-2/+0
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-17Use Python Poetry Base Action (#2277)Gravatar Hassan Abouelela-21/+3
2022-09-17Address ReviewGravatar Izan-2/+6
- Convert `ids` to a set to remove duplicates - Limit the amount of reminders you can delete at once to 5 in order to prevent API spam
2022-09-17Removed italics from the help command (#2272)Gravatar Mohammad Ibrahim-5/+5
* removed asterisk from embed description * removed italics from line 334, 375 and 415 * pagination.py, L239 added italics
2022-09-16remove help message that displays the available keywords per ruleGravatar Amrou Bellalouna-8/+2
2022-09-16Removed "redis_ready" from additional_spec_asyncs in MockBot (#2275)Gravatar Aleksey Zasorin-1/+1
The attribute was removed from Bot in fc05849
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-14Update docstrings & comment.Gravatar Izan-17/+8
2022-09-13Specify the path for poetry venvsGravatar Chris Lovering-1/+2
Without this the venv would be created in /root/.cache and the nonn-root user that prod runs under would not have access to it.
2022-09-13Ignore mounted in-project venvs on startupGravatar Chris Lovering-1/+4
Poetry's virtualenvs.in-project config deafults to None, meaning it will use in-project venvs if it finds one, otherwise it will use the cache dir. In dev we mount the entire root project directory to /bot. This means if the host's venv in in the project dir, this will get mounted and prioritised by poetry run. If the host is on a non-linux OS this will cause poetry to fail to boot.
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-10Convert all setting entries to pydnatic modelsGravatar mbaruh-150/+125
In order to facilitate this change, the init of all setting entries was removed, and as such the base SettingsEntry class doesn't count as abstract anymore, which broke the MUST_SET behavior. It was changed to not raise errors for MUST_SET values of attributes which were set in the current class. Additionally fixed a small bug where filters weren't listed properly in the list command. Despite the pydantic manual not writing it that way, I first made the validators class methods, otherwise it gave linting errors which couldn't be ignored with noqa (because then it complained about blanket noqas).
2022-09-10Fix error in help channels cog which assumed an embed would have a descriptionGravatar wookie184-1/+2