Add styling to due date and grading format of subsection.

This commit is contained in:
Alexander Kryklia
2014-08-01 13:22:22 +03:00
committed by cahrens
parent 8b78eefe97
commit 5dbfd1087b
4 changed files with 23 additions and 22 deletions

View File

@@ -112,12 +112,12 @@ class CourseOutlineItem(object):
@property
def due_date(self):
element = self.q(css=self._bounded_selector(".due-date"))
element = self.q(css=self._bounded_selector(".status-grading-date"))
return element.first.text[0] if element.present else None
@property
def policy(self):
element = self.q(css=self._bounded_selector(".policy"))
element = self.q(css=self._bounded_selector(".status-grading-value"))
return element.first.text[0] if element.present else None

View File

@@ -302,8 +302,8 @@ class EditingSectionsTest(CourseOutlineTest):
modal.save()
self.assertIn(u'Released: Mar 12, 1972', subsection.release_date)
self.assertIn(u'Due date: Jul 21, 2014', subsection.due_date)
self.assertIn(u'Policy: Lab', subsection.policy)
self.assertIn(u'Due: Jul 21, 2014', subsection.due_date)
self.assertIn(u'Lab', subsection.policy)
def test_can_edit_section(self):
"""