Skip to content

Commit 188fab0

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0528153 commit 188fab0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

sde_collections/tests/test_import_fulltexts.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ 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, \
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+
):
3738
mock_get_full_texts.return_value = mock_generator()
3839

3940
fetch_and_replace_full_text(collection.id, "lrm_dev")
@@ -62,8 +63,9 @@ def mock_batch_generator():
6263
for start in range(0, total_records, batch_size):
6364
yield create_batch(start, min(batch_size, total_records - start))
6465

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+
):
6769
mock_get_full_texts.return_value = mock_batch_generator()
6870

6971
# Execute the task

0 commit comments

Comments
 (0)