From 0050d432eb0cc276dab6a19eed5d093c795a185d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Felipe=20Casta=C3=B1o?= <78836902+luisfelipec95@users.noreply.github.com> Date: Tue, 19 Mar 2024 11:11:56 -0500 Subject: [PATCH] fix: update from palm.master (#812) * fix: Update the date to the max year possible in a test. (#33995) This test broke on January 1, 2024. * Merge pull request #34048 from open-craft/agrendalath/xblock-callback-jwt-restricted-application-check-palm fix(palm): add `JwtRestrictedApplication` check to XBlock callback * fix: add missing function import in certificate template (#33904) (#34171) * fix: add missing function import in certificate template * test: add test case to check certificates generated when GA4 is enabled (cherry picked from commit d0a49d1a01bda06722139513919b1aafcf739fa9) --------- Co-authored-by: Diana Huang Co-authored-by: Piotr Surowiec Co-authored-by: Kaustav Banerjee --- openedx/features/survey_report/tests/test_query_methods.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/openedx/features/survey_report/tests/test_query_methods.py b/openedx/features/survey_report/tests/test_query_methods.py index b8d60bd79c..9a4b6431ed 100644 --- a/openedx/features/survey_report/tests/test_query_methods.py +++ b/openedx/features/survey_report/tests/test_query_methods.py @@ -45,10 +45,7 @@ def test_get_unique_courses_offered(self): """ Test that get_unique_courses_offered returns the correct number of courses. """ - end_time = datetime.now() + timedelta(days=365) - end_time_formatted = end_time.strftime('%Y-%m-%d') - course_overview = CourseOverviewFactory.create(id=self.first_course.id, start="2019-01-01", - end=end_time_formatted) + 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)