test: model redis py4 index type

This commit is contained in:
dajiaohuang 2026-09-04 14:47:37 +08:00
parent 3c35c46f96
commit 4bf186fcad

View file

@ -548,7 +548,7 @@ def test_valkey_cache_supports_redis_py_4_index_module():
pass
class IndexType:
pass
HASH = "HASH"
legacy = types.ModuleType("redis.commands.search.indexDefinition")
legacy.IndexDefinition = IndexDefinition