Changeset 9022 for main/waeup.kofa/trunk/src
- Timestamp:
- 19 Jul 2012, 07:11:32 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r9021 r9022 479 479 self.assertEqual(self.browser.headers['Status'], '200 Ok') 480 480 self.assertEqual(self.browser.url, self.history_path) 481 self.assertMatches('... Student admitted by Manager...',481 self.assertMatches('...Admitted by Manager...', 482 482 self.browser.contents) 483 483 # Only the Application Slip does not exist -
main/waeup.kofa/trunk/src/waeup/kofa/students/workflow.py
r9005 r9022 23 23 source = None, 24 24 condition = NullCondition, 25 msg = _(' Student record created'),25 msg = _('Record created'), 26 26 destination = CREATED), 27 27 … … 29 29 transition_id = 'admit', 30 30 title = _('Admit student'), 31 msg = _(' Student admitted'),31 msg = _('Admitted'), 32 32 source = CREATED, 33 33 destination = ADMITTED), … … 63 63 Transition( 64 64 transition_id = 'reset3', 65 title = _('Reset to clearance '),66 msg = _("Reset to 'clearance '"),65 title = _('Reset to clearance started'), 66 msg = _("Reset to 'clearance started'"), 67 67 source = REQUESTED, 68 68 destination = CLEARANCE), … … 77 77 Transition( 78 78 transition_id = 'reset4', 79 title = _('Reset to clearance '),80 msg = _("Reset to 'clearance '"),79 title = _('Reset to clearance started'), 80 msg = _("Reset to 'clearance started'"), 81 81 source = CLEARED, 82 82 destination = CLEARANCE), … … 85 85 transition_id = 'pay_first_school_fee', 86 86 title = _('Pay school fee'), 87 msg = _(' School fee paid'),87 msg = _('First school fee payment made'), 88 88 source = CLEARED, 89 89 destination = PAID), … … 92 92 transition_id = 'approve_first_school_fee', 93 93 title = _('Approve payment'), 94 msg = _(' School fee payment approved'),94 msg = _('First school fee payment approved'), 95 95 source = CLEARED, 96 96 destination = PAID), … … 106 106 transition_id = 'pay_school_fee', 107 107 title = _('Pay school fee'), 108 msg = _(' Payment made'),108 msg = _('School fee payment made'), 109 109 source = RETURNING, 110 110 destination = PAID), … … 112 112 Transition( 113 113 transition_id = 'pay_pg_fee', 114 title = _('Pay postgraduateschool fee'),115 msg = _('P ayment made'),114 title = _('Pay PG school fee'), 115 msg = _('PG school fee payment made'), 116 116 source = PAID, 117 117 destination = PAID), … … 119 119 Transition( 120 120 transition_id = 'approve_school_fee', 121 title = _('Approve payment'),121 title = _('Approve school fee payment'), 122 122 msg = _('School fee payment approved'), 123 123 source = RETURNING, … … 126 126 Transition( 127 127 transition_id = 'approve_pg_fee', 128 title = _('Approve postgraduate payment'),129 msg = _(' School fee payment approved'),128 title = _('Approve PG school fee payment'), 129 msg = _('PG school fee payment approved'), 130 130 source = PAID, 131 131 destination = PAID), … … 147 147 Transition( 148 148 transition_id = 'reset7', 149 title = _('Reset to paid'),150 msg = _("Reset to ' paid'"),149 title = _('Reset to school fee paid'), 150 msg = _("Reset to 'school fee paid'"), 151 151 source = REGISTERED, 152 152 destination = PAID), … … 161 161 Transition( 162 162 transition_id = 'reset8', 163 title = _('Reset to paid'),164 msg = _("Reset to ' paid'"),163 title = _('Reset to school fee paid'), 164 msg = _("Reset to 'school fee paid'"), 165 165 source = VALIDATED, 166 166 destination = PAID), … … 175 175 Transition( 176 176 transition_id = 'reset9', 177 title = _('Reset to validated'),178 msg = _("Reset to ' validated'"),177 title = _('Reset to courses validated'), 178 msg = _("Reset to 'courses validated'"), 179 179 source = RETURNING, 180 180 destination = VALIDATED), -
main/waeup.kofa/trunk/src/waeup/kofa/utils/tests/test_browser.py
r9012 r9022 41 41 42 42 def test_replace_student_messages(self): 43 self.assertTrue(' Student record created by system' in43 self.assertTrue('Record created by system' in 44 44 self.student.history.messages[0]) 45 45 replaceStudentMessages('system', 'me') 46 self.assertTrue(' Student record created by me' in46 self.assertTrue('Record created by me' in 47 47 self.student.history.messages[0]) 48 48 49 49 def test_modify_all_student_history(self): 50 self.assertTrue(' Student record created by system' in50 self.assertTrue('Record created by system' in 51 51 self.student.history.messages[0]) 52 52 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') … … 58 58 'http://localhost/app/modify_student_history?old=by system&new=by me') 59 59 self.assertTrue('Finished' in self.browser.contents) 60 self.assertTrue(' Student record created by me' in60 self.assertTrue('Record created by me' in 61 61 self.student.history.messages[0]) 62 62
Note: See TracChangeset for help on using the changeset viewer.