From 3abfeb24ca0fc0bd706f07480f48a20c86d76c66 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Tue, 14 Oct 2025 16:11:06 -0400 Subject: [PATCH] test: Switch the library test to use problem instead of html. Since we're removing the studio implementation of the html block, update the library test that was using it to use the problem block instead. --- .../tests/test_content_libraries.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/openedx/core/djangoapps/content_libraries/tests/test_content_libraries.py b/openedx/core/djangoapps/content_libraries/tests/test_content_libraries.py index 8fcc8b9a68..c465fdd03e 100644 --- a/openedx/core/djangoapps/content_libraries/tests/test_content_libraries.py +++ b/openedx/core/djangoapps/content_libraries/tests/test_content_libraries.py @@ -415,11 +415,11 @@ class ContentLibrariesTestCase(ContentLibrariesRestApiTest): # Add a 'html' XBlock to the library: create_date = datetime(2024, 6, 6, 6, 6, 6, tzinfo=timezone.utc) with freeze_time(create_date): - block_data = self._add_block_to_library(lib_id, "html", "html1") + block_data = self._add_block_to_library(lib_id, "problem", "problem1") self.assertDictContainsEntries(block_data, { - "id": "lb:CL-TEST:testlib2:html:html1", - "display_name": "Text", - "block_type": "html", + "id": "lb:CL-TEST:testlib2:problem:problem1", + "display_name": "Blank Problem", + "block_type": "problem", "has_unpublished_changes": True, "last_published": None, "published_by": None, @@ -441,14 +441,14 @@ class ContentLibrariesTestCase(ContentLibrariesRestApiTest): block_data["has_unpublished_changes"] = False block_data["last_published"] = publish_date.isoformat().replace('+00:00', 'Z') block_data["published_by"] = "Bob" - block_data["published_display_name"] = "Text" + block_data["published_display_name"] = "Blank Problem" self.assertDictContainsEntries(self._get_library_block(block_id), block_data) assert self._get_library_blocks(lib_id)['results'] == [block_data] # Now update the block's OLX: orig_olx = self._get_library_block_olx(block_id) - assert '