Skip to content

Commit

Permalink
revise vairable name
Browse files Browse the repository at this point in the history
  • Loading branch information
spikechroma committed Aug 22, 2024
1 parent 6ae3a69 commit 05c8b6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chromadb/test/property/strategies.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,15 +459,15 @@ def recordsets(
min_metadata_size: int = 0,
max_metadata_size: Optional[int] = None,
# ids can only be optional for add operations
for_add: bool = False,
can_ids_be_empty: bool = False,
) -> RecordSet:
collection = draw(collection_strategy)
ids = list(
draw(st.lists(id_strategy, min_size=min_size, max_size=max_size, unique=True))
)

# This probablistic event is used to mimic user behavior when they don't provide ids
if for_add and np.random.rand() < 0.5:
if can_ids_be_empty and np.random.rand() < 0.5:
ids = []

n = len(ids)
Expand Down

0 comments on commit 05c8b6e

Please sign in to comment.