Commit d3fc2625 by Mushtaq Ali

Code refactor pass store_type in course create method

parent 3559bd1e
...@@ -2181,13 +2181,12 @@ class TestXBlockPublishingInfo(ItemTest): ...@@ -2181,13 +2181,12 @@ class TestXBlockPublishingInfo(ItemTest):
""" """
SelfPacedConfiguration(enabled=True).save() SelfPacedConfiguration(enabled=True).save()
with self.store.default_store(store_type):
# Create course, chapter and setup future release date to make chapter in scheduled state # Create course, chapter and setup future release date to make chapter in scheduled state
course = CourseFactory.create() course = CourseFactory.create(default_store=store_type)
chapter = self._create_child(course, 'chapter', "Test Chapter") chapter = self._create_child(course, 'chapter', "Test Chapter")
self._set_release_date(chapter.location, datetime.now(UTC) + timedelta(days=1)) self._set_release_date(chapter.location, datetime.now(UTC) + timedelta(days=1))
# Check that has scheduled state # Check that chapter has scheduled state
xblock_info = self._get_xblock_info(chapter.location) xblock_info = self._get_xblock_info(chapter.location)
self._verify_visibility_state(xblock_info, VisibilityState.ready) self._verify_visibility_state(xblock_info, VisibilityState.ready)
self.assertFalse(course.self_paced) self.assertFalse(course.self_paced)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment