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

Method test_init

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

Source from the content-addressed store, hash-verified

164
165class TestQueryContext:
166 def test_init(self):
167 ctx = QueryContext(topk=10)
168 assert ctx.topk == 10
169 assert ctx.queries == []
170 assert ctx.filter is None
171 assert ctx.reranker is None
172 assert ctx.output_fields is None
173 assert ctx.include_vector is False
174
175 def test_properties(self):
176 queries = [Query(field_name="test")]

Callers

nothing calls this directly

Calls 1

QueryContextClass · 0.90

Tested by

no test coverage detected