Cleanup integration test dir (#3308)

This commit is contained in:
Davis Chase
2023-04-21 09:44:09 -07:00
committed by GitHub
parent 3bc703b0d6
commit 2fd24d31a4
11 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
"""Integration test for Wikipedia API Wrapper."""
from langchain.utilities import WikipediaAPIWrapper
def test_call() -> None:
"""Test that WikipediaAPIWrapper returns correct answer"""
wikipedia = WikipediaAPIWrapper()
output = wikipedia.run("HUNTER X HUNTER")
assert "Yoshihiro Togashi" in output
def test_no_result_call() -> None:
"""Test that call gives no result."""
wikipedia = WikipediaAPIWrapper()
output = wikipedia.run(
"NORESULTCALL_NORESULTCALL_NORESULTCALL_NORESULTCALL_NORESULTCALL_NORESULTCALL"
)
assert "No good Wikipedia Search Result was found" == output