From 700564dced8f4876e26da7103d7404c63e2f854f Mon Sep 17 00:00:00 2001 From: Zachary Trabookis Date: Thu, 11 Apr 2024 23:30:31 -0400 Subject: [PATCH] fix: `test_assignment` was breaking because question count to show was not enabled. lms.djangoapps.course_home_api.outline.tests.test_view.OutlineTabTestViews testMethod=test_assignment --- lms/djangoapps/course_home_api/outline/tests/test_view.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lms/djangoapps/course_home_api/outline/tests/test_view.py b/lms/djangoapps/course_home_api/outline/tests/test_view.py index 2714f3ece514..1666b6df5826 100644 --- a/lms/djangoapps/course_home_api/outline/tests/test_view.py +++ b/lms/djangoapps/course_home_api/outline/tests/test_view.py @@ -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):