Skip to content

Commit

Permalink
[BUG] [TST] Multitenancy bug fix (#1276)
Browse files Browse the repository at this point in the history
## Description of changes

*Summarize the changes made by this PR.*
 - Improvements & Bug fixes
- Fixes a small bug that was introduced by a bad merge in #1244 .
Get_coll should look at the metadata in the model, not from the input
collection.
 - New functionality
	 - None.

## Test plan
*How are these changes tested?*
These are test changes.
- [x] Tests pass locally with `pytest` for python, `yarn test` for js

## Documentation Changes
None required.
  • Loading branch information
HammadB authored Oct 24, 2023
1 parent 05de6d0 commit 0b0b785
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chromadb/test/property/test_collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def get_coll(self, coll: strategies.Collection) -> None:
if coll.name in self.model:
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]
else:
with pytest.raises(Exception):
self.api.get_collection(name=coll.name)
Expand Down

0 comments on commit 0b0b785

Please sign in to comment.