MCPcopy Create free account
hub / github.com/ScrapeGraphAI/Scrapegraph-ai / test_google_search

Function test_google_search

tests/utils/research_web_test.py:8–12  ·  view source on GitHub ↗

Tests search_on_web with Google search engine.

()

Source from the content-addressed store, hash-verified

6
7
8def test_google_search():
9 """Tests search_on_web with Google search engine."""
10 results = search_on_web("test query", search_engine="Google", max_results=2)
11 assert len(results) == 2
12 # You can further assert if the results actually contain 'test query' in the title/snippet using additional libraries
13
14
15def test_bing_search():

Callers

nothing calls this directly

Calls 1

search_on_webFunction · 0.90

Tested by

no test coverage detected