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

Method test_init

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

QueryContextClass · 0.90

Tested by

no test coverage detected