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

Unified Diff: tests/test_renderer.py

Issue 29933555: Noissue - fix coding style and adjust linting config (Closed) Base URL: https://hg.adblockplus.org/python-abp
Patch Set: Created Nov. 1, 2018, 11:21 a.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_renderer.py
===================================================================
--- a/tests/test_renderer.py
+++ b/tests/test_renderer.py
@@ -65,18 +65,19 @@
assert got.startswith(head + '! *** src:inc ***\nIncluded')
def test_include2(head):
src1 = MockSource(fl='[Adblock]\n%include inc1%',
inc1='%include src2:inc2%')
src2 = MockSource(inc2='%include inc3%', inc3='Included')
got = render_str('src1:fl', {'src1': src1, 'src2': src2})
- expect = (head +
- '! *** inc1 ***\n! *** src2:inc2 ***\n! *** inc3 ***\nIncluded')
+ expect = (
+ head + '! *** inc1 ***\n! *** src2:inc2 ***\n! *** inc3 ***\nIncluded'
+ )
assert got.startswith(expect)
def test_circular_includes():
src = MockSource(fl='[Adblock]\n%include src:fl%')
with pytest.raises(IncludeError):
render_str('src:fl', {'src': src})
« tests/test_diff_script.py ('K') | « tests/test_parser.py ('k') | tox.ini » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld