(collection, expected)
| 94 | |
| 95 | |
| 96 | def _assert_docs(collection, expected): |
| 97 | fetched = collection.fetch(["a", "b", "c"]) |
| 98 | assert {key: doc.fields["value"] for key, doc in fetched.items()} == expected |
| 99 | assert collection.stats.doc_count == len(expected) |
| 100 | assert {doc.id for doc in collection.iter_docs()} == set(expected) |
| 101 | |
| 102 | |
| 103 | @pytest.mark.parametrize("enable_mmap", [True, False]) |
no test coverage detected