Skip to content

Commit

Permalink
add simple test for imports (langchain-ai#5461)
Browse files Browse the repository at this point in the history
Co-authored-by: Dev 2049 <[email protected]>
  • Loading branch information
hwchase17 and dev2049 authored May 30, 2023
1 parent 1111f18 commit eab4b4c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/unit_tests/test_depedencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,17 @@ def test_test_group_dependencies(poetry_conf: Mapping[str, Any]) -> None:
"pytest-watcher",
"responses",
]


def test_imports() -> None:
"""Test that you can import all top level things okay."""
from langchain.chains import LLMChain # noqa: F401
from langchain.chat_models import ChatOpenAI # noqa: F401
from langchain.document_loaders import BSHTMLLoader # noqa: F401
from langchain.embeddings import OpenAIEmbeddings # noqa: F401
from langchain.llms import OpenAI # noqa: F401
from langchain.prompts import BasePromptTemplate # noqa: F401
from langchain.retrievers import VespaRetriever # noqa: F401
from langchain.tools import DuckDuckGoSearchResults # noqa: F401
from langchain.utilities import SerpAPIWrapper # noqa: F401
from langchain.vectorstores import FAISS # noqa: F401

0 comments on commit eab4b4c

Please sign in to comment.