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

Unified Diff: tests/test_rpy.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
« abp/filters/parser.py ('K') | « tests/test_parser.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/test_rpy.py
===================================================================
--- a/tests/test_rpy.py
+++ b/tests/test_rpy.py
@@ -130,11 +130,12 @@
@pytest.mark.parametrize('line_type', list(_TEST_EXAMPLES.keys()))
def test_line2dict_format(line_type):
"""Test that the API result has the appropriate format.
Checks for both keys and datatypes.
"""
- data = line2dict(_TEST_EXAMPLES[line_type]['in'])
+ mode = 'start' if line_type == 'header' else 'body'
+ data = line2dict(_TEST_EXAMPLES[line_type]['in'], mode)
assert data == _TEST_EXAMPLES[line_type]['out']
« abp/filters/parser.py ('K') | « tests/test_parser.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld