summaryrefslogtreecommitdiff
path: root/tests/unit/engines
AgeCommit message (Collapse)Author
2021-09-02[mod] move searx/testing.py to the tests directoryAlexandre Flament
move robot tests to tests.robot manage calls "python -m tests.robot"
2020-11-14[mod] remove unused importAlexandre Flament
use from searx.engines.duckduckgo import _fetch_supported_languages, supported_languages_url # NOQA so it is possible to easily remove all unused import using autoflake: autoflake --in-place --recursive --remove-all-unused-imports searx tests
2020-10-25[enh] Add onions category with Ahmia, Not Evil and Torcha01200356
Xpath engine and results template changed to account for the fact that archive.org doesn't cache .onions, though some onion engines migth have their own cache. Disabled by default. Can be enabled by setting the SOCKS proxies to wherever Tor is listening and setting using_tor_proxy as True. Requires Tor and updating packages. To avoid manually adding the timeout on each engine, you can set extra_proxy_timeout to account for Tor's (or whatever proxy used) extra time.
2020-09-08[enh] Add command line engines: git grep, find, etc. (#2128)Noémi Ványi
A new "base" engine called command is introduced. It is the foundation for all command line engines for now. You can use this engine to create your own command line engine. Add some engines (commented out to make sure no one enables anything accidentally): * git grep: This engine lets you grep in the searx repo. * locate: If locate is installed and initialized, you can search on the FS. * find: You can find files with a specific name from where you started searx. * pattern search in files: This engine utilizes the command fgrep. * regex search in files: This engine runs `grep` to find a file based on its contents.
2019-12-21[mod] remove useless engine unit testsAdam Tauber
These tests are not able to detect engine errors if the upstream site changes.
2019-12-07[fix] update xpaths for new google results pageMarc Abonce Seguin
2019-11-24add seedpeer againMarc Abonce Seguin
2019-10-16[fix] remove useless engine testsAdam Tauber
2019-10-14[fix] engine testAdam Tauber
2019-08-05Fix bing engine results count (#1387)Léo Bourrel
This PR fixes the result count from bing which was throwing an (hidden) error and add a validation to avoid reading more results than avalaible. For example : If there is 100 results from some search and we try to get results from 120 to 130, Bing will send back the results from 0 to 10 and no error. If we compare results count with the first parameter of the request we can avoid this "invalid" results.
2019-08-05[fix] fdroid engineDalf
2019-08-05[fix] arxiv engineDalf
2019-07-29[fix] wikidata engine: faster processing, remove one HTTP redirection.Dalf
* Search URL is https://www.wikidata.org/w/index.php?{query}&ns0=1 (with ns0=1 at the end to avoid an HTTP redirection) * url_detail: remove the disabletidy=1 deprecated parameter * Add eval_xpath function: compile once for all xpath. * Add get_id_cache: retrieve all HTML with an id, avoid the slow to procress dynamic xpath '//div[@id="{propertyid}"]'.replace('{propertyid}') * Create an etree.HTMLParser() instead of using the global one (see #1575)
2019-07-28[enh] flickr_noapi: use complete JSON data block, add 'content', ↵Frank de Lange
'img_format', 'source', etc. (#1571) Fetch complete JSON data block, use legend to extract images. Unquote urlencoded strings. Add image description as 'content'. Add 'img_format' and 'source' data (needs PR #1567 to enable this data to be displayed). Show images which lack ownerid instead of discarding them.
2019-07-27[fix] bing_videos (#1579)Frank de Lange
use JSON where possible, compose 'content' using all available data, use correct 'url' (direct to source instead of redirect through bing)
2019-07-27[enh] bing_images: use data from embedded JSON to improve results (e.g. real ↵Frank de Lange
page title) (#1568) use data from embedded JSON to improve results (e.g. real page title), add image format and source info (see PR #1567), improve paging logic (it now works)
2019-07-25[mod] restore btdigg engine as btdig.com (#1515)volth
2019-07-25[fix] fix duden engine (#1594)rachmadani haryono
2019-05-28Remove some engines : subtitleseeker, seedpeer, swisscowsDalf
http://www.subtitleseeker.com and http://www.seedpeer.eu don't exist anymore. https://swisscows.ch/ has change : the engine needs to be updated
2019-04-13[fix] duckduckgo images requestsMarc Abonce Seguin
2019-03-26[fix] get youtube results from js objectMarc Abonce Seguin
Results are not appearing in the html document anymore, instead they are found inside an object embedded in a script.
2019-01-14Merge branch 'master' into engines/unsplashd-tux
2019-01-08[fix] unicode error with WolframAlpha API engineMarc Abonce Seguin
2019-01-08Merge branch 'master' into engines/unsplashd-tux
2019-01-07fix after rebaseNoémi Ványi
2019-01-07Revert "remove 'all' option from search languages"Noémi Ványi
This reverts commit 4d1770398a6af8902e75c0bd885781584d39e796.
2019-01-06[fix] fetch google's supported languagesMarc Abonce Seguin
2019-01-06[fix] check language aliases when setting search languageMarc Abonce Seguin
2019-01-04Merge branch 'master' into devel_google_videosNoémi Ványi
2019-01-04Merge branch 'master' into bugfix_startpageNoémi Ványi
2019-01-04[fix] google videos testVenca24
2018-12-19Update bing image engine with new image json formatLéo Bourrel
2018-12-14change rest of test_startpage.pyMichael Pfitzner
2018-12-14change the html in test_startpage.py to look more like the actual startpage siteMichael Pfitzner
2018-11-22[fix] google videos testVenca24
2018-10-08Removes what looks like tracking parametersDenis Wernert
2018-10-08Adds a unit test for the unsplash engineDenis Wernert
2018-08-19[fix] remove publicly unavailable 500px engine - #1338Adam Tauber
2018-08-18duden.de enginedadosch
2018-07-06Fix wikidata tests with updated path to mediaLéo Bourrel
2018-06-14[fix] remove obsolete testAdam Tauber
2018-05-21follow up testsNoémi Ványi
2018-05-05Fix acgsou encoding error on python2 and add unicode characters to unit testtrinpatch
2018-05-03Fix unit test urlrinpatch
2018-04-27Remove Japanese charactersrinpatch
2018-04-27Fix unit testrinpatch
2018-04-27Added unit testrinpatch
2018-04-23Fix string lengthrinpatch
2018-04-23Unit testrinpatch
2018-04-18[fix] force English results in Google when using en-USMarc Abonce Seguin