mirror of
https://github.com/hwchase17/langchain
synced 2024-10-29 17:07:25 +00:00
10 lines
290 B
Python
10 lines
290 B
Python
"""Integration test for SerpAPI."""
|
|
from langchain.serpapi 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"
|