fix upstash test import (#11781)

This commit is contained in:
Bagatur 2023-10-13 13:31:36 -07:00 committed by GitHub
parent 9f0a718198
commit 1559ba4bfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>"