Skip to content

Commit

Permalink
Error string.
Browse files Browse the repository at this point in the history
  • Loading branch information
atroyn committed Nov 6, 2023
1 parent 7fe3095 commit d9bce09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chromadb/test/ef/test_multimodal_ef.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ def test_multimodal(
document_embeddings = default_ef(documents)

# Trying to add a document and an image at the same time should fail
with pytest.raises(ValueError):
with pytest.raises(
ValueError, match="You can only provide documents or images, not both."
):
multimodal_collection.add(
ids=image_ids[0], documents=documents[0], images=images[0]
)
Expand Down

0 comments on commit d9bce09

Please sign in to comment.