From 0b0b785f49e98739e408db9ae4cf30854cf68127 Mon Sep 17 00:00:00 2001 From: Hammad Bashir Date: Tue, 24 Oct 2023 09:11:12 -0700 Subject: [PATCH] [BUG] [TST] Multitenancy bug fix (#1276) ## 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. --- chromadb/test/property/test_collections.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chromadb/test/property/test_collections.py b/chromadb/test/property/test_collections.py index d7cd8492117..c658b545df2 100644 --- a/chromadb/test/property/test_collections.py +++ b/chromadb/test/property/test_collections.py @@ -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)