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

Unified Diff: tests/test_renderer.py

Issue 29851654: Issue 6850 - Remove generation of checksums (Closed) Base URL: https://hg.adblockplus.org/python-abp/
Patch Set: Add test for checksum removal, fix README references Created Aug. 10, 2018, 10:28 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
« no previous file with comments | « tests/test_render_script.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/test_renderer.py
===================================================================
--- a/tests/test_renderer.py
+++ b/tests/test_renderer.py
@@ -56,7 +56,7 @@
def test_simple_render(head):
src = MockSource(fl='[Adblock]\n! Comment.')
got = render_str('fl', {}, src)
- assert got == head + '! Comment.\n! Checksum: bmdRu7Y9gm9DAV6vOoAv4Q'
+ assert got == head + '! Comment.'
def test_include(head):
@@ -118,3 +118,9 @@
src = MockSource(fl='! No header')
with pytest.raises(MissingHeader):
render_str('fl', {}, src)
+
+
+def test_remove_checksum(head):
+ src = MockSource(fl='[Adblock]\n! Comment\n! Checksum: foo')
+ got = render_str('fl', {}, src)
+ assert got == head + '! Comment'
« no previous file with comments | « tests/test_render_script.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld