mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 08:56:10 +00:00
The pattern test method `test_rule_patterns` tests each rule by fetching two strings from it: `test_good` and `test_bad`. Each string is then presented as an input file to `custom_check_file`, which should return True or False. All lines in a string need to end with `\n`. Since the linter expects an additional newline at the end of a file, the test case adds `\n` to each string on top of that. Fixes #6320.
3.4 KiB
3.4 KiB