Home / File/ test_imports.py — langchain Source File

test_imports.py — langchain Source File

Architecture documentation for test_imports.py, a python file in the langchain codebase. 1 imports, 0 dependents.

File python CoreAbstractions Serialization 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  b7d82b39_4c09_8a9c_ccc1_55f36fcbd7e8["test_imports.py"]
  0b28cff6_d823_1571_d2bb_ec61508cc89c["langchain_openai"]
  b7d82b39_4c09_8a9c_ccc1_55f36fcbd7e8 --> 0b28cff6_d823_1571_d2bb_ec61508cc89c
  style b7d82b39_4c09_8a9c_ccc1_55f36fcbd7e8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

from langchain_openai import __all__

EXPECTED_ALL = [
    "OpenAI",
    "ChatOpenAI",
    "OpenAIEmbeddings",
    "AzureOpenAI",
    "AzureChatOpenAI",
    "AzureOpenAIEmbeddings",
    "custom_tool",
]


def test_all_imports() -> None:
    assert sorted(EXPECTED_ALL) == sorted(__all__)

Subdomains

Functions

Dependencies

  • langchain_openai

Frequently Asked Questions

What does test_imports.py do?
test_imports.py is a source file in the langchain codebase, written in python. It belongs to the CoreAbstractions domain, Serialization subdomain.
What functions are defined in test_imports.py?
test_imports.py defines 1 function(s): test_all_imports.
What does test_imports.py depend on?
test_imports.py imports 1 module(s): langchain_openai.
Where is test_imports.py in the architecture?
test_imports.py is located at libs/partners/openai/tests/unit_tests/test_imports.py (domain: CoreAbstractions, subdomain: Serialization, directory: libs/partners/openai/tests/unit_tests).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free