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: Correct behavior, add comments, improve naming, add tests Created Sept. 18, 2018, 12:37 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)
Sebastian Noack 2018/09/18 15:19:08 Note that I removed the test case for metadata her
Vasily Kuznetsov 2018/09/18 18:11:44 Done.
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