Skip to content

Commit e6ca1a1

Browse files
committed
test that reinserted collections compact
1 parent f1a7249 commit e6ca1a1

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

chromadb/test/property/test_add.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,31 @@
2121

2222
collection_st = st.shared(strategies.collections(with_hnsw_params=True), key="coll")
2323

24+
@given(
25+
collection=collection_st,
26+
record_set=strategies.recordsets(collection_st, min_size=1, max_size=5),
27+
)
28+
@settings(
29+
deadline=None,
30+
parent=override_hypothesis_profile(
31+
normal=hypothesis.settings(max_examples=500),
32+
fast=hypothesis.settings(max_examples=200),
33+
),
34+
)
35+
def test_add_miniscule(
36+
client: ClientAPI,
37+
collection: strategies.Collection,
38+
record_set: strategies.RecordSet,
39+
) -> None:
40+
if (
41+
client.get_settings().chroma_api_impl
42+
== "chromadb.api.async_fastapi.AsyncFastAPI"
43+
):
44+
pytest.skip(
45+
"TODO @jai, come back and debug why CI runners fail with async + sync"
46+
)
47+
_test_add(client, collection, record_set, True)
48+
2449

2550
# Hypothesis tends to generate smaller values so we explicitly segregate the
2651
# the tests into tiers, Small, Medium. Hypothesis struggles to generate large

0 commit comments

Comments
 (0)