@@ -409,7 +409,7 @@ def test_multiple_document_stores_using_same_index(self):
409409 # Test async/await methods and concurrency
410410
411411 @pytest .mark .asyncio
412- async def test_write_documents (self , document_store : InMemoryDocumentStore ):
412+ async def test_write_documents_async (self , document_store : InMemoryDocumentStore ):
413413 docs = [Document (id = "1" )]
414414 assert await document_store .write_documents_async (docs ) == 1
415415 with pytest .raises (DuplicateDocumentError ):
@@ -443,7 +443,7 @@ async def test_delete_documents(self, document_store: InMemoryDocumentStore):
443443 assert await document_store .count_documents_async () == 0
444444
445445 @pytest .mark .asyncio
446- async def test_bm25_retrieval (self , document_store : InMemoryDocumentStore ):
446+ async def test_bm25_retrieval_async (self , document_store : InMemoryDocumentStore ):
447447 # Tests if the bm25_retrieval method returns the correct document based on the input query.
448448 docs = [Document (content = "Hello world" ), Document (content = "Haystack supports multiple languages" )]
449449 await document_store .write_documents_async (docs )
@@ -452,7 +452,7 @@ async def test_bm25_retrieval(self, document_store: InMemoryDocumentStore):
452452 assert results [0 ].content == "Haystack supports multiple languages"
453453
454454 @pytest .mark .asyncio
455- async def test_embedding_retrieval (self ):
455+ async def test_embedding_retrieval_async (self ):
456456 docstore = InMemoryDocumentStore (embedding_similarity_function = "cosine" )
457457 # Tests if the embedding retrieval method returns the correct document based on the input query embedding.
458458 docs = [
0 commit comments