File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,9 @@ 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 , \
36
- patch ("sde_collections.utils.slack_utils.send_detailed_import_notification" ):
35
+ with patch ("sde_collections.sinequa_api.Api.get_full_texts" ) as mock_get_full_texts , patch (
36
+ "sde_collections.utils.slack_utils.send_detailed_import_notification"
37
+ ):
37
38
mock_get_full_texts .return_value = mock_generator ()
38
39
39
40
fetch_and_replace_full_text (collection .id , "lrm_dev" )
@@ -62,8 +63,9 @@ def mock_batch_generator():
62
63
for start in range (0 , total_records , batch_size ):
63
64
yield create_batch (start , min (batch_size , total_records - start ))
64
65
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" ):
66
+ with patch ("sde_collections.sinequa_api.Api.get_full_texts" ) as mock_get_full_texts , patch (
67
+ "sde_collections.utils.slack_utils.send_detailed_import_notification"
68
+ ):
67
69
mock_get_full_texts .return_value = mock_batch_generator ()
68
70
69
71
# Execute the task
You can’t perform that action at this time.
0 commit comments