Add styling to due date and grading format of subsection.
This commit is contained in:
committed by
cahrens
parent
8b78eefe97
commit
5dbfd1087b
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user