mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-02 03:26:17 +00:00
Harrison/wolfram alpha (#579)
Co-authored-by: Nicolas <nicolascamara29@gmail.com>
This commit is contained in:
9
tests/integration_tests/test_wolfram_alpha_api.py
Normal file
9
tests/integration_tests/test_wolfram_alpha_api.py
Normal file
@@ -0,0 +1,9 @@
|
||||
"""Integration test for Wolfram Alpha API Wrapper."""
|
||||
from langchain.utilities.wolfram_alpha import WolframAlphaAPIWrapper
|
||||
|
||||
|
||||
def test_call() -> None:
|
||||
"""Test that call gives the correct answer."""
|
||||
search = WolframAlphaAPIWrapper()
|
||||
output = search.run("what is 2x+18=x+5?")
|
||||
assert "x = -13" in output
|
Reference in New Issue
Block a user