aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2020-02-02Adjust existing tests to inherit from RuleTest ABCGravatar kwzrd-294/+157
2020-02-02Implement RuleTest ABCGravatar kwzrd-0/+76
This will serve as an ABC for tests for individual rules. The base class provides runners for allowed and disallowed cases, and the children classes then only provide the cases and implementations of helper methods specific to each rule.
2020-01-31Adjust multi-line docstrings to prevailing styleGravatar kwzrd-3/+6
2020-01-26Refactor msg helper function name to make_msgGravatar kwzrd-25/+25
The name msg is less descriptive and creates a needless name conflict in local gen exp.
2020-01-26Fix incorrect config key in attachments antispam ruleGravatar kwzrd-3/+3
The rule was incorrectly printing out the maximum amount of allowed attachments instead of the configured interval. This commit also adjusts the rule's unit test case.