mirror of
https://github.com/zulip/zulip.git
synced 2026-06-24 21:08:25 +08: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. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| custom_check.py | ||
| exclude.py | ||
| pep8.py | ||
| printer.py | ||
| pyflakes.py | ||