File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ def mock_generator():
33
33
yield (mock_batch )
34
34
35
35
with patch ("sde_collections.sinequa_api.Api.get_full_texts" ) as mock_get_full_texts , patch (
36
+ "sde_collections.sinequa_api.Api.get_total_count" , return_value = 2
37
+ ), patch (
36
38
"sde_collections.utils.slack_utils.send_detailed_import_notification"
37
39
):
38
40
mock_get_full_texts .return_value = mock_generator ()
@@ -64,6 +66,8 @@ def mock_batch_generator():
64
66
yield (create_batch (start , min (batch_size , total_records - start )))
65
67
66
68
with patch ("sde_collections.sinequa_api.Api.get_full_texts" ) as mock_get_full_texts , patch (
69
+ "sde_collections.sinequa_api.Api.get_total_count" , return_value = 20000
70
+ ), patch (
67
71
"sde_collections.utils.slack_utils.send_detailed_import_notification"
68
72
):
69
73
mock_get_full_texts .return_value = mock_batch_generator ()
You can’t perform that action at this time.
0 commit comments