Skip to content

Commit

Permalink
fix: test_assignment was breaking because question count to show wa…
Browse files Browse the repository at this point in the history
…s not enabled.

lms.djangoapps.course_home_api.outline.tests.test_view.OutlineTabTestViews testMethod=test_assignment
  • Loading branch information
ztraboo committed Apr 12, 2024
1 parent 1695822 commit 700564d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lms/djangoapps/course_home_api/outline/tests/test_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,8 @@ def test_proctored_exam(self, mock_summary):
assert exam_data['due'] is not None
assert exam_data['icon'] == 'fa-foo-bar'

@patch.dict('django.conf.settings.FEATURES', {'ENABLE_COURSEWARE_OUTLINE_QUESTION_COUNT': True})
@patch.dict('django.conf.settings.FEATURES', {'ENABLE_COURSEWARE_OUTLINE_EFFORT_ESTIMATES': True})
def test_assignment(self):
course = CourseFactory.create()
with self.store.bulk_operations(course.id):
Expand Down

0 comments on commit 700564d

Please sign in to comment.