Skip to content

Commit

Permalink
fix: end date fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
luisfelipec95 committed Mar 14, 2024
1 parent fe07703 commit 33f8b96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openedx/features/survey_report/tests/test_query_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ 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")
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)
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 33f8b96

Please sign in to comment.