Skip to content
Snippets Groups Projects
Commit f821e19f authored by Troy Sankey's avatar Troy Sankey
Browse files

Update tests for previous commit

Updates tests for code changes in commit "Remove reads from old column".
parent 499fd0e4
No related branches found
No related tags found
No related merge requests found
......@@ -120,7 +120,7 @@ class TestCourseUpdateResolver(SchedulesResolverTestMixin, ModuleStoreTestCase):
return CourseUpdateResolver(
async_send_task=Mock(name='async_send_task'),
site=self.site_config.site,
target_datetime=enrollment.schedule.start,
target_datetime=enrollment.schedule.start_date,
day_offset=-7,
bin_num=CourseUpdateResolver.bin_num_for_user_id(self.user.id),
)
......
......@@ -155,7 +155,7 @@ class CreateScheduleTests(SharedModuleStoreTestCase):
mock_get_current_site.return_value = site
course = _create_course_run(self_paced=True, start_day_offset=5) # course starts in future
enrollment = CourseEnrollmentFactory(course_id=course.id, mode=CourseMode.AUDIT)
assert _strip_secs(enrollment.schedule.start) == _strip_secs(course.start)
assert _strip_secs(enrollment.schedule.start_date) == _strip_secs(course.start)
@override_waffle_flag(CREATE_SCHEDULE_WAFFLE_FLAG, True)
def test_course_already_started(self, mock_get_current_site):
......@@ -167,7 +167,7 @@ class CreateScheduleTests(SharedModuleStoreTestCase):
mock_get_current_site.return_value = site
course = _create_course_run(self_paced=True, start_day_offset=-5) # course already started
enrollment = CourseEnrollmentFactory(course_id=course.id, mode=CourseMode.AUDIT)
assert _strip_secs(enrollment.schedule.start) == _strip_secs(enrollment.created)
assert _strip_secs(enrollment.schedule.start_date) == _strip_secs(enrollment.created)
@ddt.ddt
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment