Skip to content

Commit b1ba6a4

Browse files
committed
Use DDG for test
1 parent dcbfdae commit b1ba6a4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/ords/test_integrated.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from elm.ords.services.threaded import TempFileCache
2121
from elm.ords.services.provider import RunningAsyncServices
2222
from elm.ords.utilities.queued_logging import LocationFileLog, LogListener
23-
from elm.web.search.google import PlaywrightGoogleLinkSearch
23+
from elm.web.search.duckduckgo import PlaywrightDuckDuckGoLinkSearch
2424
from elm.web.file_loader import AsyncFileLoader
2525
from elm.web.document import HTMLDocument
2626

@@ -141,8 +141,8 @@ async def _test_response(*args, **kwargs):
141141

142142

143143
@pytest.mark.asyncio
144-
async def test_google_search_with_logging(tmp_path):
145-
"""Test searching google for some counties with logging"""
144+
async def test_search_with_logging(tmp_path):
145+
"""Test searching for some counties with logging"""
146146

147147
assert not list(tmp_path.glob("*"))
148148

@@ -152,7 +152,7 @@ async def test_google_search_with_logging(tmp_path):
152152

153153
async def search_single(location):
154154
logger.info("This location is %r", location)
155-
search_engine = PlaywrightGoogleLinkSearch(chromium_sandbox=False)
155+
search_engine = PlaywrightDuckDuckGoLinkSearch(chromium_sandbox=False)
156156
return await search_engine.results(
157157
f"Wind energy zoning ordinance {location}",
158158
num_results=num_requested_links,

0 commit comments

Comments
 (0)