whoogle-search/test
Ben Busby c8da53d4b0
Block websites from search results via user config (#304)
* Block websites in search results via user config

Adds a new config field "Block" to specify a comma separated list of
websites to block in search results. This is applied for all searches.

* Add test for blocking sites from search results

* Document WHOOGLE_CONFIG_BLOCK usage

* Strip '-site:' filters from query in header template

The 'behind the scenes' site filter applied for blocked sites was
appearing in the query field when navigating between search categories
(all -> images -> news, etc). This prevents the filter from appearing in
all except "images", since the image category uses a separate header.
This should eventually be addressed when the image page can begin using
the standard whoogle header, but until then, the filter will still
appear for image searches.
2021-05-07 11:45:53 -04:00
..
__init__.py Added testing and ci build, refactored filter class, refactored project structure 2020-04-15 17:41:53 -06:00
conftest.py Fix incorrect config bool env var casting 2021-04-12 16:40:59 -04:00
test_autocomplete.py Feature: autocomplete/search suggestions (#72) 2020-05-24 14:03:11 -06:00
test_misc.py Switch to single Fernet key per session 2021-04-05 11:00:56 -04:00
test_results.py Block websites from search results via user config (#304) 2021-05-07 11:45:53 -04:00
test_routes.py Add option to disable changing config from client (#295) 2021-04-27 10:36:03 -04:00