summaryrefslogtreecommitdiff
path: root/tests/test_logging.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_logging.py')
-rw-r--r--tests/test_logging.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_logging.py b/tests/test_logging.py
index ef6fbd2..68aeb97 100644
--- a/tests/test_logging.py
+++ b/tests/test_logging.py
@@ -73,7 +73,7 @@ def test_web_search_provider_error_is_written_to_server_log(
def __exit__(self, *args):
return None
- def text(self, query, max_results=5):
+ def text(self, query, max_results=5, *, region, backend):
raise RuntimeError("403 Forbidden")
with patch("ollama_web.tools.search.DDGS", FailingDDGS), TestClient(create_app()):
@@ -83,6 +83,6 @@ def test_web_search_provider_error_is_written_to_server_log(
assert result == {"error": "RuntimeError: 403 Forbidden"}
content = (data_dir / "server.log").read_text(encoding="utf-8")
- assert "DuckDuckGo web search failed" in content
+ assert "ddgs web search failed" in content
assert "RuntimeError: 403 Forbidden" in content
assert "private search terms" not in content