Skip to content

Commit 900073a

Browse files
committed
Fix method reference
1 parent 6fdf59a commit 900073a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/unit/test_hybrid_types.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
VectorSearchMethods,
2020
)
2121

22-
from redisvl.query.hybrid import HybridQuery
22+
from redisvl.query.hybrid import HybridQuery, build_combination_method
2323

2424
REDIS_HYBRID_AVAILABLE = True
2525
except ImportError:
@@ -1024,7 +1024,7 @@ def test_hybrid_query_combination_method_none():
10241024
def test_build_combination_method_invalid_method():
10251025
"""Test build_combination_method static method with invalid combination method."""
10261026
with pytest.raises(ValueError, match="Unknown combination method"):
1027-
HybridQuery.build_combination_method(
1027+
build_combination_method(
10281028
combination_method="INVALID", # type: ignore
10291029
)
10301030

@@ -1037,6 +1037,6 @@ def test_build_combination_method_no_parameters(method: Literal["RRF", "LINEAR"]
10371037
ValueError,
10381038
match="No parameters provided for combination method - must provide at least one parameter",
10391039
):
1040-
HybridQuery.build_combination_method(
1040+
build_combination_method(
10411041
combination_method=method,
10421042
)

0 commit comments

Comments
 (0)