forked from Archives/langchain
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
296 B
Python
10 lines
296 B
Python
2 years ago
|
"""Integration test for SerpAPI."""
|
||
|
from langchain.chains.serpapi import SerpAPIChain
|
||
|
|
||
|
|
||
|
def test_call() -> None:
|
||
|
"""Test that call gives the correct answer."""
|
||
|
chain = SerpAPIChain()
|
||
|
output = chain.search("What was Obama's first name?")
|
||
|
assert output == "Barack Hussein Obama II"
|