Skip to content

Commit

Permalink
fix: update from palm.master (#812)
Browse files Browse the repository at this point in the history
* 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 d0a49d1)

---------

Co-authored-by: Diana Huang <[email protected]>
Co-authored-by: Piotr Surowiec <[email protected]>
Co-authored-by: Kaustav Banerjee <[email protected]>
  • Loading branch information
4 people authored and bra-i-am committed Apr 16, 2024
1 parent 32f5255 commit 0050d43
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions openedx/features/survey_report/tests/test_query_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0050d43

Please sign in to comment.