async def test_filled_doc_items_keys_values(doc: Document) -> None: doc.update({"test": "value"}) assert list(doc.keys()) == ["_id", "test"] assert list(doc.values()) == ["foo", "value"] assert dict(doc.items()) == {"_id": "foo", "test": "value"}
async def test_doc_items_keys_values(doc: Document) -> None: assert list(doc.keys()) == ["_id"] assert list(doc.values()) == ["foo"] assert dict(doc.items()) == {"_id": "foo"}