feat: Update the course end date block display logic

For self-paced courses, we have decided to switch to showing the end
date as long as it is within 365 days rather than the expected
duration of the course.
This commit is contained in:
Dillon Dumesnil
2021-05-18 16:31:05 -04:00
parent 7c211c108e
commit 8aeb460133
3 changed files with 48 additions and 43 deletions

View File

@@ -41,7 +41,7 @@ class TestCourseDatesFragmentView(ModuleStoreTestCase):
def test_course_dates_fragment(self):
response = self.client.get(self.dates_fragment_url)
self.assertContains(response, 'Course End')
self.assertContains(response, 'Course ends')
self.client.logout()
response = self.client.get(self.dates_fragment_url)