mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-16 06:53:16 +00:00
fix upstash test import (#11781)
This commit is contained in:
@@ -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>"
|
||||
|
Reference in New Issue
Block a user