Ignore:
Timestamp:
12 May 2012, 16:27:14 (13 years ago)
Author:
Henrik Bettermann
Message:

Managers do not 'pay' fees for applicants and students, they approve payments made.

Add respective transitions.

File:
1 edited

Legend:

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

    r8429 r8434  
    725725        self.browser.getControl(name="transition").value = ['clear']
    726726        self.browser.getControl("Save").click()
     727        # Managers approve payment, they do not pay
     728        self.assertFalse('pay_first_school_fee' in self.browser.contents)
    727729        self.browser.getControl(
    728             name="transition").value = ['pay_first_school_fee']
     730            name="transition").value = ['approve_first_school_fee']
    729731        self.browser.getControl("Save").click()
    730732        self.browser.getControl(name="transition").value = ['reset6']
     
    732734        # In state returning the pay_school_fee transition triggers some
    733735        # changes of attributes
    734         self.browser.getControl(name="transition").value = ['pay_school_fee']
     736        self.browser.getControl(name="transition").value = ['approve_school_fee']
    735737        self.browser.getControl("Save").click()
    736738        self.assertEqual(student['studycourse'].current_session, 2005) # +1
     
    13991401        self.assertEqual(payment.r_amount_approved, 3456.0)
    14001402        self.assertEqual(payment.r_code, 'AP')
    1401         self.assertEqual(payment.r_desc, u'Payment approved by K1000000')
     1403        self.assertEqual(payment.r_desc, u'Payment approved by Anna Tester')
    14021404        # The new CLR-0 pin has been created
    14031405        self.assertEqual(len(self.app['accesscodes']['CLR-0']),1)
Note: See TracChangeset for help on using the changeset viewer.