mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-08 14:31:55 +00:00
initial commit
This commit is contained in:
9
tests/integration_tests/chains/test_serpapi.py
Normal file
9
tests/integration_tests/chains/test_serpapi.py
Normal file
@@ -0,0 +1,9 @@
|
||||
"""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"
|
Reference in New Issue
Block a user