Skip to content

Commit 4531af3

Browse files
committed
mocking deindex_items
1 parent 4d81372 commit 4531af3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

learning_resources/etl/loaders_test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -933,6 +933,11 @@ def test_load_content_files(mocker, is_published, extra_run, calc_score):
933933
"learning_resources_search.plugins.tasks.deindex_run_content_files",
934934
autospec=True,
935935
)
936+
937+
mocker.patch(
938+
"learning_resources_search.indexing_api.deindex_run_content_files",
939+
autospec=True,
940+
)
936941
mock_calc_score = mocker.patch(
937942
"learning_resources.etl.loaders.calculate_completeness"
938943
)

0 commit comments

Comments
 (0)