mirror of
https://github.com/hwchase17/langchain
synced 2024-11-08 07:10:35 +00:00
f23b3ceb49
consolidating logic for when a chain is able to run with single input text, single output text open to feedback on naming, logic, usefulness
10 lines
293 B
Python
10 lines
293 B
Python
"""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.run("What was Obama's first name?")
|
|
assert output == "Barack Hussein Obama II"
|