Skip to content

Commit 8ca992e

Browse files
committed
fix: don't try to create non-ascii block codes
1 parent f93cc26 commit 8ca992e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

openedx/core/djangoapps/content_libraries/tests/test_content_libraries.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,11 +306,11 @@ def test_library_blocks(self): # pylint: disable=too-many-statements
306306
Test the happy path of creating and working with XBlocks in a content
307307
library.
308308
309-
Tests with some non-ASCII chars in slugs, titles, descriptions.
309+
Tests with some non-ASCII chars in titles and descriptions.
310310
"""
311311
admin = UserFactory.create(username="Admin", email="admin@example.com", is_staff=True) # noqa: F841
312312

313-
lib = self._create_library(slug="téstlꜟط", title="A Tést Lꜟطrary", description="Tésting XBlocks")
313+
lib = self._create_library(slug="testlib", title="A Tést Lꜟطrary", description="Tésting XBlocks")
314314
lib_id = lib["id"]
315315
assert lib['has_unpublished_changes'] is False
316316

@@ -320,9 +320,9 @@ def test_library_blocks(self): # pylint: disable=too-many-statements
320320
# Add a 'problem' XBlock to the library:
321321
create_date = datetime(2024, 6, 6, 6, 6, 6, tzinfo=timezone.utc) # noqa: UP017
322322
with freeze_time(create_date):
323-
block_data = self._add_block_to_library(lib_id, "problem", "ࠒröblæm1")
323+
block_data = self._add_block_to_library(lib_id, "problem", "problem1")
324324
self.assertDictContainsEntries(block_data, {
325-
"id": "lb:CL-TEST:téstlꜟط:problem:ࠒröblæm1",
325+
"id": "lb:CL-TEST:testlib:problem:problem1",
326326
"display_name": "Blank Problem",
327327
"block_type": "problem",
328328
"has_unpublished_changes": True,

0 commit comments

Comments
 (0)