mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-14 22:17:15 +00:00
Harrison/new search engine (#477)
Co-authored-by: Nicolas <nicolascamara29@gmail.com>
This commit is contained in:
9
tests/integration_tests/test_googlesearch_api.py
Normal file
9
tests/integration_tests/test_googlesearch_api.py
Normal file
@@ -0,0 +1,9 @@
|
||||
"""Integration test for Google Search API Wrapper."""
|
||||
from langchain.utilities.google_search import GoogleSearchAPIWrapper
|
||||
|
||||
|
||||
def test_call() -> None:
|
||||
"""Test that call gives the correct answer."""
|
||||
search = GoogleSearchAPIWrapper()
|
||||
output = search.run("What was Obama's first name?")
|
||||
assert "Barack Hussein Obama II" in output
|
Reference in New Issue
Block a user