MCPcopy Create free account
hub / github.com/MemTensor/MemOS / test_get_all

Function test_get_all

tests/vec_dbs/test_qdrant.py:121–127  ·  view source on GitHub ↗
(vec_db)

Source from the content-addressed store, hash-verified

119
120
121def test_get_all(vec_db):
122 vec_db.get_by_filter = MagicMock(
123 return_value=[VecDBItem(id=str(uuid.uuid4()), vector=[0.1, 0.2, 0.3])]
124 )
125 results = vec_db.get_all()
126 assert len(results) == 1
127 assert isinstance(results[0], VecDBItem)
128
129
130def test_qdrant_client_cloud_init():

Callers

nothing calls this directly

Calls 2

VecDBItemClass · 0.90
get_allMethod · 0.45

Tested by

no test coverage detected