We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebc8380 commit d28e6c7Copy full SHA for d28e6c7
1 file changed
tests/test_example_postgres_session_store.py
@@ -136,8 +136,14 @@ async def make_store() -> SessionStore:
136
for t in tables:
137
await pool.execute(f"DROP TABLE IF EXISTS {t}")
138
139
- def test_isinstance_session_store(self, store: SessionStore) -> None:
140
- assert isinstance(store, SessionStore)
+ def test_store_implements_required_methods(self, store: SessionStore) -> None:
+ """SessionStore is not @runtime_checkable; probe via _store_implements()."""
141
+ from claude_agent_sdk._internal.session_store_validation import (
142
+ _store_implements,
143
+ )
144
+
145
+ assert _store_implements(store, "append")
146
+ assert _store_implements(store, "load")
147
148
def test_rejects_unsafe_table_name(self, pool: asyncpg.Pool) -> None:
149
with pytest.raises(ValueError, match="must match"):
0 commit comments