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

Method test_init_with_valid_id

python/tests/test_params.py:567–572  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

565
566class TestQuery:
567 def test_init_with_valid_id(self):
568 vq = Query(field_name="embedding", id="doc123")
569 assert vq.field_name == "embedding"
570 assert vq.id == "doc123"
571 assert vq.vector is None
572 assert vq.param is None
573
574 def test_init_with_valid_vector(self):
575 vec = [0.1, 0.2, 0.3]

Callers

nothing calls this directly

Calls 1

QueryClass · 0.90

Tested by

no test coverage detected