From 022b4a1f128495e3f3f02e0c725c2e7127aa591a Mon Sep 17 00:00:00 2001 From: Diana Huang Date: Tue, 2 Jan 2024 16:31:21 -0500 Subject: [PATCH] fix: Update the date to the max year possible in a test. (#33995) This test broke on January 1, 2024. --- openedx/features/survey_report/tests/test_query_methods.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openedx/features/survey_report/tests/test_query_methods.py b/openedx/features/survey_report/tests/test_query_methods.py index fd1a41f504f5..9a4b6431ed59 100644 --- a/openedx/features/survey_report/tests/test_query_methods.py +++ b/openedx/features/survey_report/tests/test_query_methods.py @@ -45,7 +45,7 @@ def test_get_unique_courses_offered(self): """ Test that get_unique_courses_offered returns the correct number of courses. """ - course_overview = CourseOverviewFactory.create(id=self.first_course.id, start="2019-01-01", end="2024-01-01") + course_overview = CourseOverviewFactory.create(id=self.first_course.id, start="2019-01-01", end="9999-01-01") CourseEnrollmentFactory.create(user=self.user, course_id=course_overview.id) CourseEnrollmentFactory.create(user=self.user1, course_id=course_overview.id) CourseEnrollmentFactory.create(user=self.user2, course_id=course_overview.id)