Merge pull request #27487 from edx/mikix/fix-gated-content-check

fix: properly set contains_gated_content field on xblocks again
This commit is contained in:
Michael Terry
2021-05-03 11:50:40 -04:00
committed by GitHub
6 changed files with 26 additions and 25 deletions

View File

@@ -166,7 +166,7 @@ class TestContentHighlights(ModuleStoreTestCase): # lint-amnesty, pylint: disab
mock_get_module.return_value = None
with self.store.bulk_operations(self.course_key):
self._create_chapter(highlights='Test highlight')
self._create_chapter(highlights=['Test highlight'])
with self.assertRaisesRegex(CourseUpdateDoesNotExist, 'Course module .* not found'):
get_week_highlights(self.user, self.course_key, 1)