conftest.py — langchain Source File
Architecture documentation for conftest.py, a python file in the langchain codebase. 9 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 81b9f9df_8601_314e_4fb6_20a115260a63["conftest.py"] 0029f612_c503_ebcf_a452_a0fae8c9f2c3["os"] 81b9f9df_8601_314e_4fb6_20a115260a63 --> 0029f612_c503_ebcf_a452_a0fae8c9f2c3 2bf6d401_816d_d011_3b05_a6114f55ff58["collections.abc"] 81b9f9df_8601_314e_4fb6_20a115260a63 --> 2bf6d401_816d_d011_3b05_a6114f55ff58 02f66451_d2a9_e7c3_9765_c3a7594721ad["uuid"] 81b9f9df_8601_314e_4fb6_20a115260a63 --> 02f66451_d2a9_e7c3_9765_c3a7594721ad f69d6389_263d_68a4_7fbf_f14c0602a9ba["pytest"] 81b9f9df_8601_314e_4fb6_20a115260a63 --> f69d6389_263d_68a4_7fbf_f14c0602a9ba bc299d65_c03c_8892_3cc8_690b9de57e0f["langgraph.checkpoint.base"] 81b9f9df_8601_314e_4fb6_20a115260a63 --> bc299d65_c03c_8892_3cc8_690b9de57e0f 27256c49_f186_fc5f_da89_12653e111446["langgraph.store.base"] 81b9f9df_8601_314e_4fb6_20a115260a63 --> 27256c49_f186_fc5f_da89_12653e111446 eb5ed5ef_e1a1_2b04_ea56_09bddf618738["pytest_mock"] 81b9f9df_8601_314e_4fb6_20a115260a63 --> eb5ed5ef_e1a1_2b04_ea56_09bddf618738 303553e1_76b5_cb57_e6b7_892bc322ab78["tests.unit_tests.agents.conftest_checkpointer"] 81b9f9df_8601_314e_4fb6_20a115260a63 --> 303553e1_76b5_cb57_e6b7_892bc322ab78 14577571_cd04_0145_877f_a5e378b0ed18["tests.unit_tests.agents.conftest_store"] 81b9f9df_8601_314e_4fb6_20a115260a63 --> 14577571_cd04_0145_877f_a5e378b0ed18 style 81b9f9df_8601_314e_4fb6_20a115260a63 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import os
from collections.abc import AsyncIterator, Iterator
from uuid import UUID
import pytest
from langgraph.checkpoint.base import BaseCheckpointSaver
from langgraph.store.base import BaseStore
from pytest_mock import MockerFixture
from tests.unit_tests.agents.conftest_checkpointer import (
_checkpointer_memory,
_checkpointer_postgres,
_checkpointer_postgres_aio,
_checkpointer_postgres_aio_pipe,
_checkpointer_postgres_aio_pool,
_checkpointer_postgres_pipe,
_checkpointer_postgres_pool,
_checkpointer_sqlite,
_checkpointer_sqlite_aio,
)
from tests.unit_tests.agents.conftest_store import (
_store_memory,
_store_postgres,
_store_postgres_aio,
_store_postgres_aio_pipe,
_store_postgres_aio_pool,
_store_postgres_pipe,
_store_postgres_pool,
)
# Global variables for checkpointer and store configurations
FAST_MODE = os.getenv("LANGGRAPH_TEST_FAST", "true").lower() in {"true", "1", "yes"}
SYNC_CHECKPOINTER_PARAMS = (
["memory"]
if FAST_MODE
else [
"memory",
"sqlite",
"postgres",
"postgres_pipe",
"postgres_pool",
]
)
ASYNC_CHECKPOINTER_PARAMS = (
["memory"]
if FAST_MODE
else [
"memory",
"sqlite_aio",
"postgres_aio",
"postgres_aio_pipe",
"postgres_aio_pool",
]
)
SYNC_STORE_PARAMS = (
["in_memory"]
if FAST_MODE
// ... (135 more lines)
Domain
Subdomains
Functions
Dependencies
- collections.abc
- langgraph.checkpoint.base
- langgraph.store.base
- os
- pytest
- pytest_mock
- tests.unit_tests.agents.conftest_checkpointer
- tests.unit_tests.agents.conftest_store
- uuid
Source
Frequently Asked Questions
What does conftest.py do?
conftest.py is a source file in the langchain codebase, written in python. It belongs to the LangChainCore domain, MessageInterface subdomain.
What functions are defined in conftest.py?
conftest.py defines 6 function(s): anyio_backend, async_checkpointer, async_store, deterministic_uuids, sync_checkpointer, sync_store.
What does conftest.py depend on?
conftest.py imports 9 module(s): collections.abc, langgraph.checkpoint.base, langgraph.store.base, os, pytest, pytest_mock, tests.unit_tests.agents.conftest_checkpointer, tests.unit_tests.agents.conftest_store, and 1 more.
Where is conftest.py in the architecture?
conftest.py is located at libs/langchain_v1/tests/unit_tests/agents/conftest.py (domain: LangChainCore, subdomain: MessageInterface, directory: libs/langchain_v1/tests/unit_tests/agents).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free