(self)
| 13 | # ---------------------------- |
| 14 | class TestConvertCppDoc: |
| 15 | def test_default(self): |
| 16 | doc = Doc(id="1") |
| 17 | schema = CollectionSchema( |
| 18 | name="test_collection", |
| 19 | fields=FieldSchema("name", DataType.STRING), |
| 20 | ) |
| 21 | |
| 22 | cpp_doc = convert_to_cpp_doc(doc, collection_schema=schema) |
| 23 | |
| 24 | assert cpp_doc is not None |
| 25 | assert cpp_doc.pk() == doc.id |
| 26 | |
| 27 | def test_with_field_notin_schema(self): |
| 28 | doc = Doc(id="1", fields={"name": "Tom"}) |
nothing calls this directly
no test coverage detected