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