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

Method test_collection_update

python/tests/test_collection.py:729–737  ·  view source on GitHub ↗
(
        self, collection_with_single_doc: Collection, single_doc
    )

Source from the content-addressed store, hash-verified

727 assert stats.doc_count == 0
728
729 def test_collection_update(
730 self, collection_with_single_doc: Collection, single_doc
731 ):
732 result = collection_with_single_doc.update(single_doc)
733 assert bool(result) == 1
734 assert result.ok()
735 stats = collection_with_single_doc.stats
736 assert stats is not None
737 assert stats.doc_count == 1
738
739 def test_collection_update_batch(
740 self, collection_with_multiple_docs: Collection, multiple_docs

Callers

nothing calls this directly

Calls 2

updateMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected