Skip to content

Commit 1c97935

Browse files
author
Nitin Kanukolanu
committed
Fix breaking tests
1 parent 2cf6be9 commit 1c97935

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

redisvl/schema/fields.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
- FLAT: block_size (memory management for dynamic indices)
2727
- HNSW: m, ef_construction, ef_runtime, epsilon (graph tuning)
2828
- SVS-VAMANA: graph_max_degree, construction_window_size, search_window_size,
29-
compression, reduce, training_threshold (graph + compression)
29+
compression, reduce, training_threshold (VAMANA graph algorithm
30+
with Intel hardware optimization and vector compression)
3031
3132
References:
3233
- Redis FT.CREATE: https://redis.io/commands/ft.create/

tests/unit/test_error_handling.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def test_redis_error_in_create_method(self, mock_validate):
3838
# Create a mock schema
3939
schema = Mock(spec=IndexSchema)
4040
schema.redis_fields = ["test_field"]
41+
schema.fields = {} # Dict[str, BaseField] for compatibility
4142
schema.index = Mock()
4243
schema.index.name = "test_index"
4344
schema.index.prefix = "test:"
@@ -68,6 +69,7 @@ def test_unexpected_error_in_create_method(self, mock_validate):
6869
# Create a mock schema
6970
schema = Mock(spec=IndexSchema)
7071
schema.redis_fields = ["test_field"]
72+
schema.fields = {} # Dict[str, BaseField] for compatibility
7173
schema.index = Mock()
7274
schema.index.name = "test_index"
7375
schema.index.prefix = "test:"

tests/unit/test_fields.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,6 @@ def test_check_svs_support_raises_error():
707707

708708
error_msg = str(exc_info.value)
709709
assert "SVS-VAMANA requires Redis >= 8.2.0" in error_msg
710-
assert "Redis 7.2.4" in error_msg
711710

712711

713712
def test_check_svs_support_passes():

0 commit comments

Comments
 (0)