Commit Graph

73 Commits

Author SHA1 Message Date
Florian Bruhin 1af602b258 readline: Properly delete first character 2022-03-31 19:54:19 +02:00
Florian Bruhin ab65c542a0 Add :rl-rubout and :rl-filename-rubout
Closes #4561
2022-03-31 17:46:34 +02:00
Florian Bruhin 4d13280994 pylint: Fix some legitimate issues 2021-12-03 12:04:59 +01:00
Ander Punnar 036be4e410
parametrize test_subdomain_blocking 2021-07-20 00:15:40 +03:00
Ander Punnar 38ec7f61c8
make blocking subdomains configurable 2021-07-19 20:38:27 +03:00
Florian Bruhin 6dd402c0d0 Adjust exception handling for adblock 0.5.0
See https://github.com/ArniDagur/python-adblock/issues/44
2021-06-28 19:15:13 +02:00
Ander Punnar 26b84e1c95
add subdomain blocking test 2021-04-09 22:57:41 +03:00
Ander Punnar 4449fe914c
fix test 2021-04-09 01:22:19 +03:00
Florian Bruhin cca6cd83d3 Simplify create_zipfile 2021-03-24 11:29:55 +01:00
Lembrun 27755aa136 create_zipfile and create_blocklist now return a path object 2021-03-23 21:24:49 +01:00
Lembrun 4a3e95d9c0 Simplified a bit more with *.path to *.write_text directly 2021-03-14 09:41:37 +01:00
Lembrun db5eedde8e Fixed linting 2021-03-11 19:20:15 +01:00
Lembrun 25b53971be Minor changes to pathlib objects 2021-03-11 19:06:49 +01:00
Lembrun b7050bd2e9 Replaced os.path by pathlib equivalent in test/unit/components 2021-03-10 22:21:26 +01:00
Lembrun e8b05af233 Qtbot methods changed to snake case,snake case check added 2021-02-26 22:07:08 +01:00
Lembrun 0a453396c1 Rename utils.py to testutils.py 2021-02-25 21:28:56 +01:00
Florian Bruhin 1a4fff1a42 doc: Switch URLs to https 2021-01-26 15:19:01 +01:00
Florian Bruhin 222f1f19a1 Bump copyright years
Closes #6015
2021-01-20 20:06:19 +01:00
Florian Bruhin 73f93008f6 brave adblocker: Disable on file:/// URLs
Fixes #6000
2021-01-16 18:36:57 +01:00
Florian Bruhin ce26e394c7 brave adblock: Add tests for buggy URLs
See #5754
2021-01-16 18:32:32 +01:00
Florian Bruhin c52744a219 Rename adblock component to hostblock 2020-12-22 19:20:49 +01:00
Florian Bruhin 5ef774bb30 adblock: Show message when loading lists
Same as with the hosts blocker
2020-12-22 19:20:49 +01:00
Florian Bruhin 877cd42a53 tests: Fix test_adblock without adblock module 2020-12-22 18:19:42 +01:00
Florian Bruhin 8b7bb2da57 Use ResourceType enum for conversion 2020-12-19 20:30:24 +00:00
Árni Dagur f655ec4717 Fix unraisable exception pytest failures in adblock 2020-12-19 20:30:24 +00:00
Árni Dagur 6e5e80d39a Include generation script and license for braveadblock tsv dataset 2020-12-19 20:29:51 +00:00
Árni Dagur 83955ac3fa test_blockutils.py: Get rid of on_all_downloaded() 2020-12-19 20:29:51 +00:00
Árni Dagur 01d1d14944 Tackle code review 2020-12-19 20:29:51 +00:00
Árni Dagur 71451483f4 Fix lint complaints 2020-12-19 20:29:51 +00:00
Árni Dagur 1a2912ca24 Use qtbot for blockutils test 2020-12-19 20:29:51 +00:00
Árni Dagur dd29f334fd Fix minor code review issues 2020-12-19 20:29:51 +00:00
Árni Dagur 93f3ab3305 Make pylint and flake8 happier 2020-12-19 20:29:51 +00:00
Árni Dagur e57b6e0eee Use PyQT slots instead of callbacks 2020-12-19 20:29:51 +00:00
Árni Dagur 5a7f64ea21 Apply code review suggestions 2020-12-19 20:29:51 +00:00
Árni Dagur 918d4c5e19 Apply TheCompiler's patch. Make tests succeed. 2020-12-19 20:29:28 +00:00
Árni Dagur d3bd3ca3b0 Address code review comments 2020-12-19 20:29:28 +00:00
Árni Dagur 34f251fb86 Fix test failure for Python 3.5 2020-12-19 20:29:28 +00:00
Árni Dagur ffc73980f6 Fix more lint issues related to content blocking 2020-12-19 20:29:09 +00:00
Árni Dagur 17d8d39a4b Add more tests for braveadblock. Fix empty blocklist dir case. 2020-12-19 20:28:49 +00:00
Árni Dagur b19d21652d Fix test failure in test_blocking_enabled 2020-12-19 20:28:49 +00:00
Árni Dagur 188bd533a4 Change configuration options for host- and adblock 2020-12-19 20:28:48 +00:00
Árni Dagur 68b9960a67 Merge branch 'master' into more-sophisticated-adblock 2020-12-19 20:24:06 +00:00
Árni Dagur f151ad7163 Don't whitelist blocklists 2020-12-19 20:23:17 +00:00
Árni Dagur 8607850f97 BraveAdblock: Remove the need for 'engine_factory' 2020-12-19 20:23:17 +00:00
Árni Dagur e5131a00b4 Address test failures on Python 3.5 2020-12-19 20:23:17 +00:00
Árni Dagur 8be0a684cc BraveAdblock: Fix test failures. Prefer full import paths. 2020-12-19 20:23:17 +00:00
Árni Dagur f336c5a5d6 Do not block when first_party_url is not set 2020-12-19 20:23:17 +00:00
Árni Dagur ef62048eb9 Remove unused variable in 'test_braveadblock.py' 2020-12-19 20:23:17 +00:00
Árni Dagur 18db146b74 Compress data files for 'test_braveadblock.py' 2020-12-19 20:23:17 +00:00
Árni Dagur fa76f013ea Make better use of fixtures in 'test_braveadblock.py' 2020-12-19 20:23:17 +00:00