Skip to content

Commit

Permalink
[BUG][TST] Fix bug in tenant state machine test (#1288)
Browse files Browse the repository at this point in the history
## Description of changes

*Summarize the changes made by this PR.*
 - Improvements & Bug fixes
- Fix minor bug in tenant state machine to be sure we always reference
the model
 - New functionality
	 - N/A

## Test plan
*How are these changes tested?*
These are test changes

## Documentation Changes
None required.
  • Loading branch information
HammadB authored Oct 25, 2023
1 parent ee1c364 commit c53c6eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chromadb/test/property/test_collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def create_coll(
self.set_model(coll.name, coll.metadata)

assert c.name == coll.name
assert c.metadata == coll.metadata
assert c.metadata == self.model[coll.name]
return multiple(coll)

@rule(coll=collections)
Expand Down Expand Up @@ -151,7 +151,7 @@ def get_or_create_coll(

# Check that model and API are in sync
assert c.name == coll.name
assert c.metadata == coll.metadata
assert c.metadata == self.model[coll.name]
return multiple(coll)

@rule(
Expand Down Expand Up @@ -199,7 +199,7 @@ def modify_coll(
c = self.api.get_collection(name=coll.name)

assert c.name == coll.name
assert c.metadata == coll.metadata
assert c.metadata == self.model[coll.name]
return multiple(coll)

def set_model(
Expand Down

0 comments on commit c53c6eb

Please sign in to comment.