Skip to content

Commit 78fecf1

Browse files
author
Your Name
committed
Updated test_import_fulltexts.py
1 parent 7140f51 commit 78fecf1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sde_collections/tests/test_import_fulltexts.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ def test_fetch_and_replace_full_text(disconnect_signals):
3232
def mock_generator():
3333
yield mock_batch
3434

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"):
3637
mock_get_full_texts.return_value = mock_generator()
3738

3839
fetch_and_replace_full_text(collection.id, "lrm_dev")
@@ -61,7 +62,8 @@ def mock_batch_generator():
6162
for start in range(0, total_records, batch_size):
6263
yield create_batch(start, min(batch_size, total_records - start))
6364

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"):
6567
mock_get_full_texts.return_value = mock_batch_generator()
6668

6769
# Execute the task

0 commit comments

Comments
 (0)