mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-17 10:15:27 -04:00
chore: Switch duckduckgo-search to ddgs (#3143)
* Switch to ddgs duckduckgo_search was deprecated, this is the recommended replacement * Update test_service_search_provider_guards.py According to review comment
This commit is contained in:
@@ -90,8 +90,8 @@ def test_service_ddg_html_fallback_sends_safesearch(monkeypatch):
|
||||
seen["params"] = kwargs["params"]
|
||||
return _Response()
|
||||
|
||||
monkeypatch.setitem(sys.modules, "duckduckgo_search", None)
|
||||
monkeypatch.setattr(providers, "_get_search_settings", lambda: {"search_safesearch": "off"})
|
||||
monkeypatch.setitem(sys.modules, "ddgs", None)
|
||||
monkeypatch.setattr(providers.httpx, "get", fake_get)
|
||||
|
||||
results = providers.duckduckgo_search("odysseus", count=1)
|
||||
|
||||
Reference in New Issue
Block a user