Justin Warren
fb3a7ec2da
Added tests of comment merging.
...
Tweaked comment merging to pass tests.
2023-01-22 13:25:40 +11:00
Justin Warren
ce98261d48
Fix typos in test_allowlist.
...
Added test of TLD allowlisting.
2023-01-17 06:52:25 +11:00
Justin Warren
a25773f838
Allowlists just remove blocks from merged list before push.
2023-01-15 13:33:32 +11:00
Justin Warren
bf48a9639e
Added helper submodule for testing utils
2023-01-15 13:32:13 +11:00
Justin Warren
a3d3571a20
Added basic tests of allowlist config args.
2023-01-15 10:10:52 +11:00
Justin Warren
3aa2e378e3
Remove implied setting of reject_media/reports
...
if severity is set to 'suspend'.
Complicates understanding of what the code actually does.
2023-01-15 10:02:12 +11:00
Justin Warren
11accf33d3
Restructured argparsing for easier testing.
...
Fixed bug: mergeplan in config file was ignored. Reported in #22
Added test cases for cmdline parsing.
Added test cases for configfile parsing.
2023-01-15 09:46:37 +11:00
Justin Warren
327a44d907
Removed redundant global vars.
...
Refactored fetch from URLs and instances.
Change API delay to be in calls per hour.
Improved check_followed_severity() behaviour.
Updated sample config to include new format.
Added support for per-instance-source import_fields.
BlockSeverity of 'suspend' implies reject_media and reject_reports.
2023-01-12 09:09:06 +11:00
Justin Warren
66f0373cbe
Added boolean fields like 'reject_reports' to mergeplan handling.
...
Clarified logic in apply_mergeplan() for boolean fields.
Added tests for boolean merge situations.
2023-01-12 08:08:09 +11:00
Justin Warren
0a6eec4bf2
Improved comment merging.
2023-01-12 07:39:17 +11:00
Justin Warren
10011a5ffb
Refactored to add a DomainBlock object.
...
Refactored to use a BlockParser structure.
Added ability to limit max severity per-URL source.
Improved method for checking if changes are needed.
2023-01-12 07:02:48 +11:00