We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d13113 commit 10a887fCopy full SHA for 10a887f
tests/test_cli.py
@@ -344,9 +344,11 @@ def test_bulk_update_embeddings_exit_bulk_operation_error(
344
@patch("tim.opensearch.create_index")
345
@patch("tim.opensearch.promote_index")
346
@patch("tim.opensearch.get_index_aliases")
347
+@patch("tim.opensearch.bulk_update")
348
@patch("tim.opensearch.bulk_index")
349
def test_reindex_source_success(
350
mock_bulk_index,
351
+ mock_bulk_update,
352
mock_get_index_aliases,
353
mock_promote_index,
354
mock_create_index,
@@ -362,6 +364,11 @@ def test_reindex_source_success(
362
364
"errors": 0,
363
365
"total": 1000,
366
}
367
+ mock_bulk_update.return_value = {
368
+ "updated": 10,
369
+ "errors": 0,
370
+ "total": 10,
371
+ }
372
373
result = runner.invoke(
374
main,
0 commit comments