mirror of
https://github.com/hwchase17/langchain
synced 2024-11-10 01:10:59 +00:00
44c8d8a9ac
Co-authored-by: Tim Asp <707699+timothyasp@users.noreply.github.com>
10 lines
292 B
Python
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"
|