(self)
| 396 | # ---------------------------- |
| 397 | class TestConvertPyDoc: |
| 398 | def test_default(self): |
| 399 | doc = _Doc() |
| 400 | doc.set_pk("1") |
| 401 | doc.set_score(1.0) |
| 402 | |
| 403 | schema = CollectionSchema( |
| 404 | name="test_collection", |
| 405 | fields=FieldSchema("name", DataType.STRING), |
| 406 | ) |
| 407 | |
| 408 | py_doc = convert_to_py_doc(doc, schema) |
| 409 | assert py_doc.id == "1" |
| 410 | assert py_doc.score == 1.0 |
| 411 | |
| 412 | def test_with_scalar_fields(self): |
| 413 | schema = CollectionSchema( |
nothing calls this directly
no test coverage detected