fix: failing test, not really sure why this worked before without modulestore.update_item()
This commit is contained in:
@@ -52,11 +52,9 @@ class TestGatedContent(MilestonesTestCaseMixin, SharedModuleStoreTestCase):
|
||||
org='edX',
|
||||
number='EDX101',
|
||||
run='EDX101_RUN1',
|
||||
display_name='edX 101'
|
||||
)
|
||||
with modulestore().bulk_operations(course.id):
|
||||
course.enable_subsection_gating = True
|
||||
grading_policy = {
|
||||
display_name='edX 101',
|
||||
enable_subsection_gating=True,
|
||||
grading_policy={
|
||||
"GRADER": [{
|
||||
"type": "Homework",
|
||||
"min_count": 3,
|
||||
@@ -64,10 +62,9 @@ class TestGatedContent(MilestonesTestCaseMixin, SharedModuleStoreTestCase):
|
||||
"short_label": "HW",
|
||||
"weight": 1.0
|
||||
}]
|
||||
}
|
||||
course.grading_policy = grading_policy
|
||||
course.save()
|
||||
|
||||
},
|
||||
)
|
||||
with modulestore().bulk_operations(course.id):
|
||||
# create chapter
|
||||
cls.chapter1 = BlockFactory.create(
|
||||
parent=course,
|
||||
|
||||
Reference in New Issue
Block a user