Ignore:
Timestamp:
6 May 2015, 10:13:38 (10 years ago)
Author:
Henrik Bettermann
Message:

Implement automatic matric_number assignment. Students can induce the
assignment if they have paid school fees by clicking the
'Get Matriculation Number' button. Numbering is per department and session.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/tests/test_utils.py

    r12904 r12907  
    5151        self.student.matric_number = None
    5252        msg, mnumber = utils.setMatricNumber(self.student)
     53        self.assertEqual(msg, 'Wrong state.')
     54        IWorkflowState(self.student).setState('school fee paid')
     55        msg, mnumber = utils.setMatricNumber(self.student)
    5356        self.assertEqual(msg, 'Matriculation number cannot be set.')
    5457        self.assertEqual(mnumber, None)
Note: See TracChangeset for help on using the changeset viewer.