Skip to content

Commit 59019f3

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4f5deef commit 59019f3

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

sde_collections/tests/test_import_fulltexts.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ def mock_generator():
3434

3535
with patch("sde_collections.sinequa_api.Api.get_full_texts") as mock_get_full_texts, patch(
3636
"sde_collections.sinequa_api.Api.get_total_count", return_value=2
37-
), patch(
38-
"sde_collections.utils.slack_utils.send_detailed_import_notification"
39-
):
37+
), patch("sde_collections.utils.slack_utils.send_detailed_import_notification"):
4038
mock_get_full_texts.return_value = mock_generator()
4139

4240
fetch_and_replace_full_text(collection.id, "lrm_dev")
@@ -67,9 +65,7 @@ def mock_batch_generator():
6765

6866
with patch("sde_collections.sinequa_api.Api.get_full_texts") as mock_get_full_texts, patch(
6967
"sde_collections.sinequa_api.Api.get_total_count", return_value=20000
70-
), patch(
71-
"sde_collections.utils.slack_utils.send_detailed_import_notification"
72-
):
68+
), patch("sde_collections.utils.slack_utils.send_detailed_import_notification"):
7369
mock_get_full_texts.return_value = mock_batch_generator()
7470

7571
# Execute the task

0 commit comments

Comments
 (0)