File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ def test_fetch_and_replace_full_text(disconnect_signals):
3232 def mock_generator ():
3333 yield mock_batch
3434
35- with patch ("sde_collections.sinequa_api.Api.get_full_texts" ) as mock_get_full_texts :
35+ with patch ("sde_collections.sinequa_api.Api.get_full_texts" ) as mock_get_full_texts , \
36+ patch ("sde_collections.utils.slack_utils.send_detailed_import_notification" ):
3637 mock_get_full_texts .return_value = mock_generator ()
3738
3839 fetch_and_replace_full_text (collection .id , "lrm_dev" )
@@ -61,7 +62,8 @@ def mock_batch_generator():
6162 for start in range (0 , total_records , batch_size ):
6263 yield create_batch (start , min (batch_size , total_records - start ))
6364
64- with patch ("sde_collections.sinequa_api.Api.get_full_texts" ) as mock_get_full_texts :
65+ with patch ("sde_collections.sinequa_api.Api.get_full_texts" ) as mock_get_full_texts , \
66+ patch ("sde_collections.utils.slack_utils.send_detailed_import_notification" ):
6567 mock_get_full_texts .return_value = mock_batch_generator ()
6668
6769 # Execute the task
You can’t perform that action at this time.
0 commit comments