Skip to content

Commit 2f72222

Browse files
author
Your Name
committed
Update the TCs
1 parent f15edcf commit 2f72222

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sde_collections/tests/test_import_fulltexts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def test_fetch_and_replace_full_text(disconnect_signals):
3030
]
3131

3232
def mock_generator():
33-
yield mock_batch
33+
yield (mock_batch, len(mock_batch))
3434

3535
with patch("sde_collections.sinequa_api.Api.get_full_texts") as mock_get_full_texts, patch(
3636
"sde_collections.utils.slack_utils.send_detailed_import_notification"
@@ -61,7 +61,7 @@ def mock_batch_generator():
6161
total_records = 20000
6262

6363
for start in range(0, total_records, batch_size):
64-
yield create_batch(start, min(batch_size, total_records - start))
64+
yield (create_batch(start, min(batch_size, total_records - start)), total_records)
6565

6666
with patch("sde_collections.sinequa_api.Api.get_full_texts") as mock_get_full_texts, patch(
6767
"sde_collections.utils.slack_utils.send_detailed_import_notification"

0 commit comments

Comments
 (0)