zulip/tools/tests
Robert Hönig 41e6704b99 custom linter rules test: Add pattern test.
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.
2017-09-25 10:53:06 +02:00
..
test_template_data Lint for duplicate ids in templates. 2017-01-13 17:00:22 -08:00
__init__.py Add test coverage for parsers in tools/lib. 2016-08-04 10:47:09 -07:00
test_capitalization_checker.py api: Remove root_domain_uri from API page links. 2017-08-28 14:13:37 -07:00
test_css_parser.py mypy: Remove type: ignores not needed in Python 3. 2017-08-25 11:04:20 -07:00
test_html_branches.py tools: Fix regressions in tools/tests/test_html_branches.py 2017-01-19 08:02:34 -08:00
test_linter_custom_check.py custom linter rules test: Add pattern test. 2017-09-25 10:53:06 +02:00
test_pretty_print.py linter: Fix bug resulting in <pre> being indented cyclically. 2017-06-13 08:39:59 -04:00
test_template_parser.py mypy: Remove type: ignores not needed in Python 3. 2017-08-25 11:04:20 -07:00