fix: resolve ruff import sorting in conformance wrapper tests

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Quanzheng Long
2026-05-07 11:26:40 -07:00
co-authored by Cursor
parent c78270c40f
commit a8ab1b1638
2 changed files with 22 additions and 24 deletions
@@ -10,21 +10,21 @@ pytest.importorskip(
)
pytest.importorskip("aiosqlite", reason="aiosqlite not installed")
from langgraph.checkpoint.conformance import validate # noqa: E402
from langgraph.checkpoint.conformance.initializer import checkpointer_test # noqa: E402
from langgraph.checkpoint.sqlite.aio import AsyncSqliteSaver # noqa: E402
@checkpointer_test(name="AsyncSqliteSaver")
async def _sqlite_saver():
async with AsyncSqliteSaver.from_conn_string(":memory:") as saver:
yield saver
@pytest.mark.asyncio
async def test_delta_channel_conformance():
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():
async with AsyncSqliteSaver.from_conn_string(":memory:") as saver:
yield saver
report = await validate(
_sqlite_saver,
sqlite_saver,
capabilities={
"delta_channel_history",
"delta_channel_keepset",
+11 -13
View File
@@ -2,29 +2,27 @@
from __future__ import annotations
import asyncio
import pytest
pytest.importorskip(
conformance = pytest.importorskip(
"langgraph.checkpoint.conformance",
reason="langgraph-checkpoint-conformance not installed",
)
from langgraph.checkpoint.conformance import validate # noqa: E402
from langgraph.checkpoint.conformance.initializer import checkpointer_test # noqa: E402
from langgraph.checkpoint.memory import InMemorySaver # noqa: E402
@checkpointer_test(name="InMemorySaver")
async def _mem_saver():
yield InMemorySaver()
@pytest.mark.asyncio
async def test_delta_channel_conformance():
from langgraph.checkpoint.conformance import validate
from langgraph.checkpoint.conformance.initializer import checkpointer_test
from langgraph.checkpoint.memory import InMemorySaver
@checkpointer_test(name="InMemorySaver")
async def mem_saver():
yield InMemorySaver()
report = await validate(
_mem_saver,
mem_saver,
capabilities={
"delta_channel_history",
"delta_channel_keepset",