From c53c6eb940fcabbf56b450709224223a3e7ab57f Mon Sep 17 00:00:00 2001 From: Hammad Bashir Date: Wed, 25 Oct 2023 09:14:47 -0700 Subject: [PATCH] [BUG][TST] Fix bug in tenant state machine test (#1288) ## 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. --- chromadb/test/property/test_collections.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chromadb/test/property/test_collections.py b/chromadb/test/property/test_collections.py index c658b545df2..a5ba9aef479 100644 --- a/chromadb/test/property/test_collections.py +++ b/chromadb/test/property/test_collections.py @@ -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) @@ -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( @@ -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(