Skip to content

Commit ef8b03b

Browse files
authored
fix: Typo in unsupported reason message in content libraries [FC-0114] (openedx#38005)
- Fix a simple typo in an unsupported reason message for blocks with children in content libraries
1 parent d20b87b commit ef8b03b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

cms/djangoapps/modulestore_migrator/tests/test_tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def test_migrate_node_with_children_components(self):
257257
self.course.id.make_usage_key('library_content', 'test_library_content'),
258258
None,
259259
'The "library_content" XBlock (ID: "test_library_content") has children, '
260-
'so it not supported in content libraries. It has 2 children blocks.',
260+
'so it is not supported in content libraries. It has 2 children blocks.',
261261
),
262262
)
263263
self.assertEqual(len(result.children), 0)
@@ -394,7 +394,7 @@ def test_migrate_component_failure(self):
394394
self.assertEqual(
395395
reason,
396396
'The "library_content" XBlock (ID: "test_library_content") has children,'
397-
' so it not supported in content libraries.',
397+
' so it is not supported in content libraries.',
398398
)
399399

400400
def test_migrate_component_with_static_content(self):

openedx/core/djangoapps/content_libraries/api/blocks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,8 @@ def validate_can_add_block_to_library(
310310
if block_class.has_children:
311311
raise IncompatibleTypesError(
312312
_(
313-
'The "{block_type}" XBlock (ID: "{block_id}") has children, so it not supported in content libraries.'
313+
'The "{block_type}" XBlock (ID: "{block_id}") has children,'
314+
' so it is not supported in content libraries.'
314315
).format(block_type=block_type, block_id=block_id)
315316
)
316317
# Make sure the new ID is not taken already:

0 commit comments

Comments
 (0)