Skip to content

Commit

Permalink
fix: Embedding property test error match
Browse files Browse the repository at this point in the history
  • Loading branch information
tazarov committed May 1, 2024
1 parent 99e015c commit 4bf1379
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions chromadb/test/property/test_embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,11 @@ def test_escape_chars_in_ids(api: ServerAPI) -> None:
def test_delete_empty_fails(api: ServerAPI, kwargs: dict):
api.reset()
coll = api.create_collection(name="foo")
with pytest.raises(Exception) as e:
with pytest.raises(
Exception,
match="You must provide either ids, where, or where_document to delete.",
):
coll.delete(**kwargs)
assert "You must provide either ids, where, or where_document to delete." in str(e)


@pytest.mark.parametrize(
Expand Down

0 comments on commit 4bf1379

Please sign in to comment.