Changeset 17457 for main/waeup.uniben/trunk/src/waeup/uniben/students/tests
- Timestamp:
- 26 Jun 2023, 21:30:00 (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r17395 r17457 551 551 error, payment = utils.setPaymentDetails('schoolfee', 552 552 self.student, 2002, 300, None) 553 self.assertEqual(payment.amount_auth, 40000.0)553 self.assertEqual(payment.amount_auth, 63000.0) 554 554 self.assertEqual(payment.p_session, 2002) 555 555 self.assertEqual(payment.p_level, 300) … … 557 557 error, payment = utils.setPaymentDetails('schoolfee', 558 558 self.student, 2003, 300, None) 559 self.assertEqual(payment.amount_auth, 2 0000.0)559 self.assertEqual(payment.amount_auth, 26800.0) 560 560 self.assertEqual(payment.p_session, 2003) 561 561 self.assertEqual(payment.p_level, 300) … … 569 569 self.assertEqual(payment.p_level, 100) 570 570 self.assertEqual(payment.p_session, 2004) 571 self.assertEqual(payment.amount_auth, 40000.0)571 self.assertEqual(payment.amount_auth, 63000.0) 572 572 self.assertEqual(payment.p_item, u'CERT1') 573 573 self.assertEqual(error, None) … … 581 581 error, payment = utils.setPaymentDetails('schoolfee', 582 582 self.student, None, None, None) 583 self.assertEqual(payment.amount_auth, 40099.0)583 self.assertEqual(payment.amount_auth, 63099.0) 584 584 585 585 IWorkflowState(self.student).setState('returning') … … 602 602 self.assertEqual(payment.p_level, 200) 603 603 self.assertEqual(payment.p_session, 2005) 604 self.assertEqual(payment.amount_auth, 2 0088.0)604 self.assertEqual(payment.amount_auth, 26888.0) 605 605 self.assertEqual(payment.p_item, u'CERT1') 606 606 self.assertEqual(error, None) 607 607 608 608 # Old returning students may pay less. 609 self.certificate.school_fee_2 = 50000.0610 self.certificate.custom_float_2 = 30000.0609 #self.certificate.school_fee_2 = 50000.0 610 #self.certificate.custom_float_2 = 30000.0 611 611 error, payment = utils.setPaymentDetails( 612 612 'schoolfee', self.student, None, None, None) 613 self.assertEqual(payment.amount_auth, 2 0088.0)613 self.assertEqual(payment.amount_auth, 26888.0) 614 614 615 615 # Staff members pay less. 616 self.certificate.custom_float_2 = None617 616 self.student.is_staff = True 618 617 error, payment = utils.setPaymentDetails('schoolfee', … … 620 619 self.assertEqual(payment.p_level, 200) 621 620 self.assertEqual(payment.p_session, 2005) 622 self.assertEqual(payment.amount_auth, 25088.0)621 self.assertEqual(payment.amount_auth, 13488.0) 623 622 self.assertEqual(payment.p_item, u'CERT1') 624 623 self.assertEqual(error, None) … … 628 627 self.student.is_staff = False 629 628 self.student.nationality = u'DE' 630 self.certificate.school_fee_3 = 60000.0631 629 error, payment = utils.setPaymentDetails( 632 630 'schoolfee', self.student, None, None, None) 633 631 self.assertEqual(payment.p_level, 100) 634 632 self.assertEqual(payment.p_session, 2004) 635 self.assertEqual(payment.amount_auth, 60099.0)633 self.assertEqual(payment.amount_auth, 300099.0) 636 634 self.assertEqual(payment.p_item, u'CERT1') 637 635 self.assertEqual(error, None) 638 636 IWorkflowState(self.student).setState('returning') 639 637 self.student.is_staff = False 640 self.certificate.school_fee_4 = 20000.0641 638 error, payment = utils.setPaymentDetails( 642 639 'schoolfee', self.student, None, None, None) 643 640 self.assertEqual(payment.p_level, 200) 644 641 self.assertEqual(payment.p_session, 2005) 645 self.assertEqual(payment.amount_auth, 2 0088.0)642 self.assertEqual(payment.amount_auth, 277088.0) 646 643 self.assertEqual(payment.p_item, u'CERT1') 647 644 self.assertEqual(error, None)
Note: See TracChangeset for help on using the changeset viewer.