MCPcopy Create free account
hub / github.com/alibaba/zvec / test_properties

Method test_properties

python/tests/test_query_executor.py:175–194  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

173 assert ctx.include_vector is False
174
175 def test_properties(self):
176 queries = [Query(field_name="test")]
177 reranker = RrfReRanker()
178 output_fields = ["field1", "field2"]
179
180 ctx = QueryContext(
181 topk=5,
182 filter="test_filter",
183 include_vector=True,
184 queries=queries,
185 output_fields=output_fields,
186 reranker=reranker,
187 )
188
189 assert ctx.topk == 5
190 assert ctx.queries == queries
191 assert ctx.filter == "test_filter"
192 assert ctx.reranker == reranker
193 assert ctx.output_fields == output_fields
194 assert ctx.include_vector is True
195
196 def test_properties_with_weighted_reranker(self):
197 queries = [Query(field_name="test")]

Callers

nothing calls this directly

Calls 3

QueryClass · 0.90
RrfReRankerClass · 0.90
QueryContextClass · 0.90

Tested by

no test coverage detected