def test_multimodal_document_fail_bad_doctype(visual_embedding): # the multimodal document don't have any chunks with pytest.raises(BadDocType): md = MultimodalDocument() md.tags['id'] = 1 md.embedding = visual_embedding md.modality_content_mapping
def test_multimodal_document_fail_bad_doctype(visual_embedding): # the multimodal document don't have any chunks md = MultimodalDocument() md.tags['id'] = 1 md.embedding = visual_embedding assert not md.is_valid