Changeset 8231 for main/waeup.kofa
- Timestamp:
- 20 Apr 2012, 08:31:38 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/sample_payment_data.csv
r8160 r8231 1 p_state,p_category,r_pay_reference,r_desc,p_id,reg_number,session_id,r_amount_approved,p_item,amount_auth,r_card_num,r_code,creation_date,type,surcharge_12 paid,schoolfee,GTB|WEB|FUT|26-11-2010|002295,Approved Successful,3816951290797973744#,1,2010,19500,BTECHBDT,19500,0942,00,2010/11/26 19:59:33.744 GMT+1,online,03 unpaid,schoolfee,GTB|WEB|FUT|25-11-2010|,Transaction status unconfirmed,3816951290712593757,2,2010,0,BTECHBDT,19500,0942,Z0,2010-11-25 20:16:33.757 GMT+1,online,04 paid,schoolfee,UBA|WEB|FUT|15-02-2010|000517,Approved Successful,p1266236341955,3,2009,19500,BTECHBDT,19500,0615,00,2010/02/15 13:19:01,online,01 matric_no,p_state,p_category,r_pay_reference,r_desc,p_id,reg_number,session_id,r_amount_approved,p_item,amount_auth,r_card_num,r_code,creation_date,type,surcharge_1 2 ,paid,schoolfee,GTB|WEB|FUT|26-11-2010|002295,Approved Successful,3816951290797973744#,1,2010,19500,BTECHBDT,19500,0942,00,2010/11/26 19:59:33.744 GMT+1,online,0 3 100001,unpaid,schoolfee,GTB|WEB|FUT|25-11-2010|,Transaction status unconfirmed,3816951290712593757,,2010,0,BTECHBDT,19500,0942,Z0,2010-11-25 20:16:33.757 GMT+1,online,0 4 ,paid,schoolfee,UBA|WEB|FUT|15-02-2010|000517,Approved Successful,p1266236341955,3,2009,19500,BTECHBDT,19500,0615,00,2010/02/15 13:19:01,online,0 -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_batching.py
r8210 r8231 482 482 self.assertEqual(studylevel.level, 100) 483 483 shutil.rmtree(os.path.dirname(fin_file)) 484 485 def test_import_update(self): 486 # We perform the same import twice, 487 # the second time in update mode. The number 488 # of warnings must be the same. 489 num, num_warns, fin_file, fail_file = self.processor.doImport( 490 self.csv_file, STUDYLEVEL_HEADER_FIELDS,'create') 491 num, num_warns, fin_file, fail_file = self.processor.doImport( 492 self.csv_file, STUDYLEVEL_HEADER_FIELDS,'update') 493 self.assertEqual(num_warns,2) 494 shutil.rmtree(os.path.dirname(fin_file)) 484 495 485 496 … … 565 576 self.assertEqual(courseticket.passmark, 40) 566 577 self.assertEqual(courseticket.semester, 1) 578 shutil.rmtree(os.path.dirname(fin_file)) 579 580 def test_import_update(self): 581 # We perform the same import twice, 582 # the second time in update mode. The number 583 # of warnings must be the same. 584 num, num_warns, fin_file, fail_file = self.processor.doImport( 585 self.csv_file, COURSETICKET_HEADER_FIELDS,'create') 586 num, num_warns, fin_file, fail_file = self.processor.doImport( 587 self.csv_file, COURSETICKET_HEADER_FIELDS,'update') 588 self.assertEqual(num_warns,2) 567 589 shutil.rmtree(os.path.dirname(fin_file)) 568 590 … … 658 680 shutil.rmtree(os.path.dirname(fin_file)) 659 681 682 def test_import_update(self): 683 # We perform the same import twice, 684 # the second time in update mode. The number 685 # of warnings must be the same. 686 num, num_warns, fin_file, fail_file = self.processor.doImport( 687 self.csv_file, PAYMENT_HEADER_FIELDS,'create') 688 num, num_warns, fin_file, fail_file = self.processor.doImport( 689 self.csv_file, PAYMENT_HEADER_FIELDS,'update') 690 self.assertEqual(num_warns,0) 691 shutil.rmtree(os.path.dirname(fin_file)) 692 660 693 def test_suite(): 661 694 suite = unittest.TestSuite()
Note: See TracChangeset for help on using the changeset viewer.