Changeset 13872 for main/waeup.kofa/trunk/src/waeup/kofa/students
- Timestamp:
- 4 Jun 2016, 04:08:45 (9 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/batching.py
r13871 r13872 827 827 # Requirement added on 19/02/2015: same payment must not exist. 828 828 if self.samePaymentMade(student, obj.p_category, obj.p_session): 829 student.__parent__.logger.info( 830 '%s - %s - previous update cancelled' 831 % (self.name, student.student_id)) 829 832 raise DuplicationError('Same payment has already been made.') 830 833 if len(p_id.split('-')) != 3 and not p_id.startswith('p'): -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_batching.py
r13103 r13872 1060 1060 DuplicationError, self.processor.addEntry, payment3, 1061 1061 dict(student_id=self.student.student_id, p_id='p456'), self.app) 1062 logcontent = open(self.logfile).read() 1063 self.assertTrue( 1064 'INFO - system - StudentOnlinePayment Processor - K1000000 - ' 1065 'previous update cancelled' 1066 in logcontent) 1062 1067 1063 1068 def test_checkConversion(self):
Note: See TracChangeset for help on using the changeset viewer.