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):
32
32
def mock_generator ():
33
33
yield mock_batch
34
34
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" ):
36
37
mock_get_full_texts .return_value = mock_generator ()
37
38
38
39
fetch_and_replace_full_text (collection .id , "lrm_dev" )
@@ -61,7 +62,8 @@ def mock_batch_generator():
61
62
for start in range (0 , total_records , batch_size ):
62
63
yield create_batch (start , min (batch_size , total_records - start ))
63
64
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" ):
65
67
mock_get_full_texts .return_value = mock_batch_generator ()
66
68
67
69
# Execute the task
You can’t perform that action at this time.
0 commit comments