test_utils.py — langchain Source File
Architecture documentation for test_utils.py, a python file in the langchain codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 473c72a3_8cd9_5a6c_fe40_ea989589079a["test_utils.py"] b7996424_637b_0b54_6edf_2e18e9c1a8bf["re"] 473c72a3_8cd9_5a6c_fe40_ea989589079a --> b7996424_637b_0b54_6edf_2e18e9c1a8bf f69d6389_263d_68a4_7fbf_f14c0602a9ba["pytest"] 473c72a3_8cd9_5a6c_fe40_ea989589079a --> f69d6389_263d_68a4_7fbf_f14c0602a9ba bd035cf2_5933_bc0f_65e9_0dfe57627ca3["langchain_core.utils"] 473c72a3_8cd9_5a6c_fe40_ea989589079a --> bd035cf2_5933_bc0f_65e9_0dfe57627ca3 style 473c72a3_8cd9_5a6c_fe40_ea989589079a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import re
import pytest
from langchain_core.utils import check_package_version
def test_check_package_version_pass() -> None:
check_package_version("PyYAML", gte_version="5.4.1")
def test_check_package_version_fail() -> None:
with pytest.raises(
ValueError, match=re.escape("Expected PyYAML version to be < 5.4.1. Received ")
):
check_package_version("PyYAML", lt_version="5.4.1")
Domain
Subdomains
Dependencies
- langchain_core.utils
- pytest
- re
Source
Frequently Asked Questions
What does test_utils.py do?
test_utils.py is a source file in the langchain codebase, written in python. It belongs to the LangChainCore domain, Runnables subdomain.
What functions are defined in test_utils.py?
test_utils.py defines 2 function(s): test_check_package_version_fail, test_check_package_version_pass.
What does test_utils.py depend on?
test_utils.py imports 3 module(s): langchain_core.utils, pytest, re.
Where is test_utils.py in the architecture?
test_utils.py is located at libs/langchain/tests/unit_tests/test_utils.py (domain: LangChainCore, subdomain: Runnables, directory: libs/langchain/tests/unit_tests).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free