Skip to content

Commit 4f5deef

Browse files
author
Your Name
committed
Updated the TCs
1 parent 96430de commit 4f5deef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sde_collections/tests/test_import_fulltexts.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ def mock_generator():
3333
yield (mock_batch)
3434

3535
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(
3638
"sde_collections.utils.slack_utils.send_detailed_import_notification"
3739
):
3840
mock_get_full_texts.return_value = mock_generator()
@@ -64,6 +66,8 @@ def mock_batch_generator():
6466
yield (create_batch(start, min(batch_size, total_records - start)))
6567

6668
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(
6771
"sde_collections.utils.slack_utils.send_detailed_import_notification"
6872
):
6973
mock_get_full_texts.return_value = mock_batch_generator()

0 commit comments

Comments
 (0)