Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: tests/test_parser.py

Issue 29880577: Issue 6877 - Only parse headers in the first line of the filter list (Closed)
Patch Set: Initial Created Sept. 14, 2018, 4:43 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/test_parser.py
===================================================================
--- a/tests/test_parser.py
+++ b/tests/test_parser.py
@@ -155,17 +155,17 @@
def test_parse_bad_instruction():
with pytest.raises(ParseError):
parse_line('%foo bar%')
def test_parse_bad_header():
with pytest.raises(ParseError):
- parse_line('[Adblock 1.1]')
+ parse_line('[Adblock 1.1]', mode='start')
def test_parse_filterlist():
result = parse_filterlist(['[Adblock Plus 1.1]',
'! Homepage : http://aaa.com/b',
'||example.com^',
'! Checksum: OaopkIiiAl77sSHk/VAWDA',
'! Note: bla bla'])
« abp/filters/parser.py ('K') | « abp/filters/rpy.py ('k') | tests/test_rpy.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld