Skip to content

Commit 47e9520

Browse files
committed
test: resolve all pyright strict type errors in redis event store tests
1 parent 6a67d3f commit 47e9520

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/server/contrib/test_redis_event_store.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async def redis_client():
3535
client = fakeredis.FakeRedis()
3636
yield client
3737
if hasattr(client, "aclose"):
38-
await client.aclose()
38+
await getattr(client, "aclose")()
3939
else:
4040
await client.close()
4141

@@ -244,6 +244,7 @@ async def test_replay_message_content_round_trips(store):
244244
assert len(events) == 1
245245
# The deserialized message must match the original
246246
replayed = events[0].message
247+
assert isinstance(replayed, JSONRPCRequest)
247248
assert replayed.method == "resources/list"
248249
assert replayed.id == "99"
249250

0 commit comments

Comments
 (0)