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

Method test_collection_insert

python/tests/test_collection.py:462–468  ·  view source on GitHub ↗
(self, test_collection, single_doc)

Source from the content-addressed store, hash-verified

460@pytest.mark.usefixtures("test_collection")
461class TestCollectionInsert:
462 def test_collection_insert(self, test_collection, single_doc):
463 result = test_collection.insert(single_doc)
464 assert bool(result)
465 assert result.ok()
466 stats = test_collection.stats
467 assert stats is not None
468 assert stats.doc_count == 1
469
470 def test_collection_insert_with_nullable_false_field(self, test_collection):
471 # id, name's nullable == False

Callers

nothing calls this directly

Calls 2

insertMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected