Files
langgraph/libs/checkpoint-sqlite/tests/test_conformance_delta.py
T
Claude 247eb44e6a chore: adopt mypy 2.1.0 across Python libs
Bump mypy 1.20.2 -> 2.1.0 in checkpoint, checkpoint-postgres,
checkpoint-sqlite, cli, langgraph, prebuilt and sdk-py, and fix the type
errors surfaced by the stricter checker. Only mypy and its transitive
deps (librt, ast-serialize) change in the lockfiles; no runtime
dependencies are bumped.

All changes are type-only (annotations, casts, type-ignore adjustments)
with no runtime behaviour change. make lint passes in every affected lib.

Supersedes dependabot PRs #7969, #7970 and #7974, and removes the mypy
portion of the grouped bumps in #7976 and #7972.
2026-06-02 23:24:02 -07:00

38 lines
1.2 KiB
Python

"""Run delta-channel conformance capabilities against AsyncSqliteSaver."""
from __future__ import annotations
from collections.abc import AsyncIterator
import pytest
pytest.importorskip(
"langgraph.checkpoint.conformance",
reason="langgraph-checkpoint-conformance not installed",
)
pytest.importorskip("aiosqlite", reason="aiosqlite not installed")
@pytest.mark.asyncio
async def test_delta_channel_conformance() -> None:
from langgraph.checkpoint.conformance import validate
from langgraph.checkpoint.conformance.initializer import checkpointer_test
from langgraph.checkpoint.sqlite.aio import AsyncSqliteSaver
@checkpointer_test(name="AsyncSqliteSaver")
async def sqlite_saver() -> AsyncIterator[AsyncSqliteSaver]:
async with AsyncSqliteSaver.from_conn_string(":memory:") as saver:
yield saver
report = await validate(
sqlite_saver,
capabilities={
"delta_channel_history",
},
)
for cap, result in report.results.items():
if result.passed is False:
details = "\n".join(result.failures or [])
pytest.fail(f"Capability {cap} failed:\n{details}")