(self, test_collection, single_doc)
| 460 | @pytest.mark.usefixtures("test_collection") |
| 461 | class 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 |