コード例 #1
0
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
コード例 #2
0
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