Skip to content

Commit

Permalink
test: fix restore block test case
Browse files Browse the repository at this point in the history
  • Loading branch information
navinkarkera committed Dec 13, 2024
1 parent 29eed07 commit 7e8218b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,10 @@ def test_create_delete_library_block(self, meilisearch_client):

# Restore the Library Block
library_api.restore_library_block(problem.usage_key)
meilisearch_client.return_value.index.return_value.update_documents.assert_called_with([doc_problem])
meilisearch_client.return_value.index.return_value.update_documents.assert_any_call([doc_problem])
meilisearch_client.return_value.index.return_value.update_documents.assert_any_call(
[{'id': doc_problem['id'], 'collections': {'display_name': [], 'key': []}}]
)
meilisearch_client.return_value.index.return_value.update_documents.assert_any_call(
[{'id': doc_problem['id'], 'tags': {}}]
)
2 changes: 0 additions & 2 deletions openedx/core/djangoapps/content_tagging/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
XBLOCK_DUPLICATED,
LIBRARY_BLOCK_CREATED,
LIBRARY_BLOCK_UPDATED,
LIBRARY_BLOCK_DELETED,
)

from .api import copy_object_tags
Expand All @@ -30,7 +29,6 @@
update_course_tags,
update_xblock_tags,
update_library_block_tags,
delete_library_block_tags,
)
from .toggles import CONTENT_TAGGING_AUTO

Expand Down

0 comments on commit 7e8218b

Please sign in to comment.