We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f32c5e commit 62c6e57Copy full SHA for 62c6e57
tests/integration/test_llmcache.py
@@ -6,6 +6,7 @@
6
from pydantic.v1 import ValidationError
7
from redis.exceptions import ConnectionError
8
9
+from redisvl.exceptions import RedisModuleVersionError
10
from redisvl.extensions.llmcache import SemanticCache
11
from redisvl.index.index import AsyncSearchIndex, SearchIndex
12
from redisvl.query.filter import Num, Tag, Text
@@ -781,7 +782,8 @@ def test_index_updating(redis_url):
781
782
)
783
assert response == []
784
- with pytest.raises(ValueError):
785
+ with pytest.raises((RedisModuleVersionError, ValueError)):
786
+
787
cache_with_tags = SemanticCache(
788
name="test_cache",
789
redis_url=redis_url,
0 commit comments