1313from haystack .errors import FilterError
1414from haystack .testing .document_store import (
1515 CountDocumentsTest ,
16+ DeleteAllTest ,
17+ DeleteByFilterTest ,
1618 DeleteDocumentsTest ,
17- DocumentStoreBaseExtendedTests ,
1819 FilterDocumentsTest ,
20+ UpdateByFilterTest ,
1921 WriteDocumentsTest ,
2022)
2123from haystack .utils .auth import EnvVarSecret , Secret
@@ -257,7 +259,15 @@ def _assert_documents_are_equal(received: list[Document], expected: list[Documen
257259 not os .environ .get ("AZURE_AI_SEARCH_ENDPOINT" , None ) and not os .environ .get ("AZURE_AI_SEARCH_API_KEY" , None ),
258260 reason = "Missing AZURE_AI_SEARCH_ENDPOINT or AZURE_AI_SEARCH_API_KEY." ,
259261)
260- class TestDocumentStore (CountDocumentsTest , WriteDocumentsTest , DeleteDocumentsTest , DocumentStoreBaseExtendedTests ):
262+ class TestDocumentStore (
263+ CountDocumentsTest ,
264+ DeleteDocumentsTest ,
265+ DeleteAllTest ,
266+ DeleteByFilterTest ,
267+ WriteDocumentsTest ,
268+ UpdateByFilterTest ,
269+
270+ ):
261271 def assert_documents_are_equal (self , received : list [Document ], expected : list [Document ]):
262272 _assert_documents_are_equal (received , expected )
263273
@@ -298,7 +308,7 @@ def test_write_documents_duplicate_skip(self, document_store: AzureAISearchDocum
298308 )
299309 def test_delete_by_filter (self , document_store : AzureAISearchDocumentStore ):
300310 """Override to use a document_store with category metadata field."""
301- DeleteDocumentsTest .test_delete_by_filter (document_store )
311+ DeleteByFilterTest .test_delete_by_filter (document_store )
302312
303313 @pytest .mark .parametrize (
304314 "document_store" ,
@@ -307,7 +317,7 @@ def test_delete_by_filter(self, document_store: AzureAISearchDocumentStore):
307317 )
308318 def test_delete_by_filter_no_matches (self , document_store : AzureAISearchDocumentStore ):
309319 """Override to use a document_store with category metadata field."""
310- DeleteDocumentsTest .test_delete_by_filter_no_matches (document_store )
320+ DeleteByFilterTest .test_delete_by_filter_no_matches (document_store )
311321
312322 @pytest .mark .parametrize (
313323 "document_store" ,
@@ -316,7 +326,7 @@ def test_delete_by_filter_no_matches(self, document_store: AzureAISearchDocument
316326 )
317327 def test_delete_by_filter_advanced_filters (self , document_store : AzureAISearchDocumentStore ):
318328 """Override to use a document_store with category, year, status metadata fields."""
319- DeleteDocumentsTest .test_delete_by_filter_advanced_filters (document_store )
329+ DeleteByFilterTest .test_delete_by_filter_advanced_filters (document_store )
320330
321331 # Metadata fields required by haystack UpdateByFilterTest filterable_docs (chapter, name, page, number, date, etc.)
322332 _FILTERABLE_DOCS_METADATA = { # noqa: RUF012
0 commit comments