langchain/tests/integration_tests/utilities/test_serpapi.py
2023-04-21 09:44:09 -07:00

10 lines
292 B
Python

"""Integration test for SerpAPI."""
from langchain.utilities import SerpAPIWrapper
def test_call() -> None:
"""Test that call gives the correct answer."""
chain = SerpAPIWrapper()
output = chain.run("What was Obama's first name?")
assert output == "Barack Hussein Obama II"