(
self, collection_with_single_doc: Collection, single_doc
)
| 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 |