test_setup.py — langchain Source File
Architecture documentation for test_setup.py, a python file in the langchain codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 1b6c757c_65ec_70b1_ab48_88f75a94b46b["test_setup.py"] 0c1d9a1b_c553_0388_dbc1_58af49567aa2["time"] 1b6c757c_65ec_70b1_ab48_88f75a94b46b --> 0c1d9a1b_c553_0388_dbc1_58af49567aa2 120e2591_3e15_b895_72b6_cb26195e40a6["pytest"] 1b6c757c_65ec_70b1_ab48_88f75a94b46b --> 120e2591_3e15_b895_72b6_cb26195e40a6 9eb3be64_a334_606b_b4bd_24e50a8c430d["blockbuster"] 1b6c757c_65ec_70b1_ab48_88f75a94b46b --> 9eb3be64_a334_606b_b4bd_24e50a8c430d 3fb4a817_a89e_f069_6543_9c06e36d4338["langchain_core"] 1b6c757c_65ec_70b1_ab48_88f75a94b46b --> 3fb4a817_a89e_f069_6543_9c06e36d4338 style 1b6c757c_65ec_70b1_ab48_88f75a94b46b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import time
import pytest
from blockbuster import BlockingError
from langchain_core import sys_info
async def test_blockbuster_setup() -> None:
"""Check if blockbuster is correctly setup."""
# Blocking call outside of langchain_core is allowed.
time.sleep(0.01) # noqa: ASYNC251
with pytest.raises(BlockingError):
# Blocking call from langchain_core raises BlockingError.
sys_info.print_sys_info()
Domain
Subdomains
Functions
Dependencies
- blockbuster
- langchain_core
- pytest
- time
Source
Frequently Asked Questions
What does test_setup.py do?
test_setup.py is a source file in the langchain codebase, written in python. It belongs to the CoreAbstractions domain, RunnableInterface subdomain.
What functions are defined in test_setup.py?
test_setup.py defines 1 function(s): test_blockbuster_setup.
What does test_setup.py depend on?
test_setup.py imports 4 module(s): blockbuster, langchain_core, pytest, time.
Where is test_setup.py in the architecture?
test_setup.py is located at libs/core/tests/unit_tests/test_setup.py (domain: CoreAbstractions, subdomain: RunnableInterface, directory: libs/core/tests/unit_tests).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free