@@ -170,16 +170,15 @@ async def test_delete_by_filter_async(self, document_store):
170170 Document (content = "Doc 3" , meta = {"category" : "A" }),
171171 ]
172172 document_store .write_documents (docs )
173- assert document_store .count_documents () == 3
174173
175- # Delete documents with category="A"
174+ # delete documents with category="A"
176175 deleted_count = await document_store .delete_by_filter_async (
177176 filters = {"field" : "meta.category" , "operator" : "==" , "value" : "A" }
178177 )
179178 assert deleted_count == 2
180179 assert document_store .count_documents () == 1
181180
182- # Verify only category B remains
181+ # verify only category B remains
183182 remaining_docs = document_store .filter_documents ()
184183 assert len (remaining_docs ) == 1
185184 assert remaining_docs [0 ].meta ["category" ] == "B"
@@ -194,7 +193,7 @@ async def test_update_by_filter_async(self, document_store):
194193 document_store .write_documents (docs )
195194 assert document_store .count_documents () == 3
196195
197- # Update status for category="A" documents
196+ # update status for category="A" documents
198197 updated_count = await document_store .update_by_filter_async (
199198 filters = {"field" : "meta.category" , "operator" : "==" , "value" : "A" }, meta = {"status" : "published" }
200199 )
@@ -208,8 +207,3 @@ async def test_update_by_filter_async(self, document_store):
208207 for doc in published_docs :
209208 assert doc .meta ["category" ] == "A"
210209 assert doc .meta ["status" ] == "published"
211-
212- # Verify category B still has draft status
213- draft_docs = document_store .filter_documents (filters = {"field" : "meta.status" , "operator" : "==" , "value" : "draft" })
214- assert len (draft_docs ) == 1
215- assert draft_docs [0 ].meta ["category" ] == "B"
0 commit comments