File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 21
21
22
22
collection_st = st .shared (strategies .collections (with_hnsw_params = True ), key = "coll" )
23
23
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
+
24
49
25
50
# Hypothesis tends to generate smaller values so we explicitly segregate the
26
51
# the tests into tiers, Small, Medium. Hypothesis struggles to generate large
You can’t perform that action at this time.
0 commit comments