mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-07 13:40:46 +00:00
fix upstash test import (#11781)
This commit is contained in:
parent
9f0a718198
commit
1559ba4bfc
@ -1,10 +1,15 @@
|
||||
"""Implement integration tests for Redis storage."""
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
import pytest
|
||||
from upstash_redis import Redis
|
||||
|
||||
from langchain.storage.upstash_redis import UpstashRedisStore
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from upstash_redis import Redis
|
||||
|
||||
pytest.importorskip("upstash_redis")
|
||||
|
||||
URL = "<UPSTASH_REDIS_REST_URL>"
|
||||
|
Loading…
Reference in New Issue
Block a user