Andrwe / privoxy-blocklist

Script converting AdBlock Plus rules into privoxy format.
The Unlicense
153 stars 39 forks source link

tests fail due to missing class filter AdRight2 #65

Closed Andrwe closed 1 month ago

Andrwe commented 1 month ago

For #64 the unit tests fail because the class based filter .AdRight2 is not included in the resulting configuration:

 E           assert False
E            +  where False = check_not_in('AdRight2', '<html>\n\t<body>\n\t\t<div>just-some-test-string-always-present</div>\n\t\t\n\t\t<div class="asd ajlkl AdRight2">multiple classes that should be removed</div>\n\t\t<div class="asd ajlkl"> multiple classes that should exist </div>\n\t\t\n\t\t<div data-ad-manager-id class="success-valid-class">name-only attibute should be removed</div>\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t<div class="adDisplay-modul">startswith match attribute should be exist</div>\n\t\t\n\t</body>\n</html>\n')
E            +    where '<html>\n\t<body>\n\t\t<div>just-some-test-string-always-present</div>\n\t\t\n\t\t<div class="asd ajlkl AdRight2">multiple classes that should be removed</div>\n\t\t<div class="asd ajlkl"> multiple classes that should exist </div>\n\t\t\n\t\t<div data-ad-manager-id class="success-valid-class">name-only attibute should be removed</div>\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t<div class="adDisplay-modul">startswith match attribute should be exist</div>\n\t\t\n\t</body>\n</html>\n' = <Response [200]>.text