Changeset 9582 for main


Ignore:
Timestamp:
8 Nov 2012, 22:14:13 (12 years ago)
Author:
Henrik Bettermann
Message:

Fix test_student_expired_personal_data.

Mangle exam results for export.

Location:
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/export.py

    r8926 r9582  
    3333        IApplicantBaseData.names()
    3434        ))) + ('container_code',)
     35
     36    def mangle_value(self, value, name, context=None):
     37        if '_result' in name and value:
     38            value = [eval(entry.to_string()) for entry in value]
     39        return super(
     40            NigeriaApplicantsExporter, self).mangle_value(
     41            value, name, context=context)
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_browser.py

    r9567 r9582  
    290290    def test_student_expired_personal_data(self):
    291291        # Login
     292        IWorkflowState(self.student).setState('school fee paid')
    292293        delta = timedelta(days=180)
    293294        self.student.personal_updated = datetime.utcnow() - delta
     
    313314        self.assertEqual(self.browser.url, self.edit_personal_path)
    314315        self.assertTrue(
    315             'Your personal data record expired' in self.browser.contents)
     316            'Your personal data record is outdated.' in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.