summaryrefslogtreecommitdiff
path: root/tests/unit/engines/test_bing.py
AgeCommit message (Collapse)Author
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-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-01-07Revert "remove 'all' option from search languages"Noémi Ványi
This reverts commit 4d1770398a6af8902e75c0bd885781584d39e796.
2018-03-27refactor engine's search language handlingMarc Abonce Seguin
Add match_language function in utils to match any user given language code with a list of engine's supported languages. Also add language_aliases dict on each engine to translate standard language codes into the custom codes used by the engine.
2017-12-06remove 'all' option from search languagesmarc
2017-05-15[enh] py3 compatibilityAdam Tauber
2016-12-30[fix] use english as default language in bingAdam Tauber
If no language is specified, bing returns results with multiple languages for one query which isn't really useful. Setting english as default insted if nothing.
2016-12-15tests for _fetch_supported_languages in enginesmarc
and refactor method to make it testable without making requests
2016-11-07[fix] bing paging and language supportAdam Tauber
see https://msdn.microsoft.com/en-us/library/ff795620.aspx for bing specific search operators closes #755
2016-01-10[mod] remove buildout/makefile infrastructureAdam Tauber