Ignore:
Timestamp:
5 May 2014, 17:14:11 (11 years ago)
Author:
Henrik Bettermann
Message:

Remove some unused payment options with tests.

Location:
main/waeup.aaue/trunk/src/waeup/aaue
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py

    r11607 r11621  
    157157                           self.browser.contents)
    158158        self.browser.open(self.payments_path + '/addop')
    159         # Also the other payments can be made
    160         self.browser.getControl(name="form.p_category").value = ['gown']
    161         self.browser.getControl("Create ticket").click()
    162         self.assertMatches('...ticket created...',
    163                            self.browser.contents)
    164         self.browser.open(self.payments_path + '/addop')
    165         self.browser.getControl(name="form.p_category").value = ['transfer']
    166         self.browser.getControl("Create ticket").click()
    167         self.assertMatches('...ticket created...',
    168                            self.browser.contents)
    169         self.browser.open(self.payments_path + '/addop')
    170         self.browser.getControl(
    171             name="form.p_category").value = ['bed_allocation']
    172         self.browser.getControl("Create ticket").click()
    173         self.assertMatches('...ticket created...',
    174                            self.browser.contents)
    175         self.browser.open(self.payments_path + '/addop')
    176         self.browser.getControl(
    177             name="form.p_category").value = ['hostel_maintenance']
    178         self.browser.getControl("Create ticket").click()
    179         self.assertMatches('...ticket created...',
    180                            self.browser.contents)
    181         self.browser.open(self.payments_path + '/addop')
    182159        self.browser.getControl(name="form.p_category").value = ['clearance']
    183         self.browser.getControl("Create ticket").click()
    184         self.assertMatches('...ticket created...',
    185                            self.browser.contents)
    186         self.browser.open(self.payments_path + '/addop')
    187         self.browser.getControl(name="form.p_category").value = ['late_registration']
    188160        self.browser.getControl("Create ticket").click()
    189161        self.assertMatches('...ticket created...',
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_utils.py

    r11605 r11621  
    8585        self.assertEqual(error, None)
    8686
    87         error, payment = utils.setPaymentDetails('gown',self.student)
    88         self.assertEqual(payment.p_level, 100)
    89         self.assertEqual(payment.p_session, 2004)
    90         self.assertEqual(payment.amount_auth, 150.0)
    91         self.assertEqual(payment.p_item, u'')
    92         self.assertEqual(error, None)
    93 
    94         error, payment = utils.setPaymentDetails('hostel_maintenance',self.student)
    95         self.assertEqual(payment.p_level, 100)
    96         self.assertEqual(payment.p_session, 2004)
    97         self.assertEqual(payment.amount_auth, 180.0)
    98         self.assertEqual(payment.p_item, u'')
    99         self.assertEqual(error, None)
    100 
    101         error, payment = utils.setPaymentDetails('bed_allocation',self.student)
    102         self.assertEqual(payment.p_level, 100)
    103         self.assertEqual(payment.p_session, 2004)
    104         self.assertEqual(payment.amount_auth, 150.0)
    105         self.assertEqual(payment.p_item, u'')
    106         self.assertEqual(error, None)
    107 
    108         error, payment = utils.setPaymentDetails('transfer',self.student)
    109         self.assertEqual(payment.p_level, 100)
    110         self.assertEqual(payment.p_session, 2004)
    111         self.assertEqual(payment.amount_auth, 90.0)
    112         self.assertEqual(payment.p_item, u'')
    113         self.assertEqual(error, None)
    114 
    11587        error, payment = utils.setPaymentDetails('schoolfee',self.student, 2004, 100)
    11688        self.assertEqual(error, u'Previous session payment not yet implemented.')
  • main/waeup.aaue/trunk/src/waeup/aaue/utils/utils.py

    r11593 r11621  
    4646        #'schoolfee_2': 'School Fee 2nd instalment',
    4747        'clearance': 'Acceptance Fee',
    48         'hostel_maintenance': 'Hostel Maintenance Fee',
     48        #'hostel_maintenance': 'Hostel Maintenance Fee',
    4949        'application': 'Application Fee',
    50         'gown': 'Gown Hire Fee',
    51         'bed_allocation': 'Bed Allocation Fee',
    52         'transfer': 'Transfer Fee',
     50        #'gown': 'Gown Hire Fee',
     51        #'bed_allocation': 'Bed Allocation Fee',
     52        #'transfer': 'Transfer Fee',
    5353        'transcript': 'Transcript Fee',
    54         'late_registration': 'Late Registration Fee',
     54        #'late_registration': 'Late Registration Fee',
    5555        }
    5656
Note: See TracChangeset for help on using the changeset viewer.