Skip to content

Commit f0aa538

Browse files
committed
fix: disable caching in MediawikiETL tests!
- Updated test assertions in TestMediawikiETL to include use_cache=False when instantiating the ingestion pipeline, ensuring consistency with the recent changes to disable caching during document ingestion.
1 parent 69617b7 commit f0aa538

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/unit/test_mediawiki_etl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def test_load_with_dump_deletion(self, mock_ingestion_pipeline_class):
164164

165165
# Verify that methods were called correctly
166166
mock_ingestion_pipeline_class.assert_called_once_with(
167-
self.community_id, collection_name=self.platform_id
167+
self.community_id, collection_name=self.platform_id, use_cache=False
168168
)
169169
mock_pipeline.run_pipeline.assert_called_once_with(documents)
170170
self.assertFalse(os.path.exists(etl.dump_dir))
@@ -192,7 +192,7 @@ def test_load_without_dump_deletion(self, mock_ingestion_pipeline_class):
192192

193193
# Verify that methods were called correctly
194194
mock_ingestion_pipeline_class.assert_called_once_with(
195-
self.community_id, collection_name=self.platform_id
195+
self.community_id, collection_name=self.platform_id, use_cache=False
196196
)
197197
mock_pipeline.run_pipeline.assert_called_once_with(documents)
198198
self.assertTrue(os.path.exists(etl.dump_dir))

0 commit comments

Comments
 (0)