File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323from typing import TYPE_CHECKING
2424
2525from eodag import EODataAccessGateway
26- from eodag .utils import obj_md5sum
2726from eodag .utils .exceptions import (
2827 RequestError ,
2928 TimeOutError ,
@@ -117,10 +116,6 @@ def init_dag(app: FastAPI) -> None:
117116 clean = {k : v for k , v in update_fields .items () if v is not None }
118117 p_f .update (clean )
119118
120- dag .product_types_config_md5 = obj_md5sum (dag .product_types_config .source )
121-
122- dag .build_index ()
123-
124119 # pre-build search plugins
125120 for provider in dag .available_providers ():
126121 next (dag ._plugins_manager .get_search_plugins (provider = provider ))
Original file line number Diff line number Diff line change @@ -143,7 +143,6 @@ def fixture_mock_dag() -> MagicMock:
143143 mock_dag .product_types_config = MagicMock ()
144144 # Set a default value for `product_types_config.source`
145145 mock_dag .product_types_config .source = {}
146- mock_dag .build_index = MagicMock ()
147146 mock_dag ._plugins_manager = MagicMock () # pylint: disable=protected-access
148147 mock_dag ._plugins_manager .get_search_plugins = MagicMock () # pylint: disable=protected-access
149148 mock_dag .available_providers = MagicMock (return_value = ["provider1" , "provider2" ])
@@ -247,9 +246,6 @@ def test_init_dag(
247246 updated_config = mock_dag .product_types_config .source ["test-product" ]
248247 assert updated_config == expected_updated_config
249248
250- # Assert: Verify that `dag.build_index` was called
251- mock_dag .build_index .assert_called_once ()
252-
253249 # Assert: Verify that `dag._plugins_manager.get_search_plugins` was called for each provider
254250 mock_dag .available_providers .assert_called_once ()
255251 for provider in mock_dag .available_providers .return_value :
You can’t perform that action at this time.
0 commit comments