Changeset 9370 for main


Ignore:
Timestamp:
20 Oct 2012, 19:58:10 (12 years ago)
Author:
Henrik Bettermann
Message:

Disable school fee payment so that no KwaraPoly? student accidentally pays FCEOkene school fees.

Location:
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/tests.py

    r9347 r9370  
    5151        self.browser.open(self.payments_path + '/addop')
    5252        self.browser.getControl("Create ticket").click()
    53         self.assertMatches('...ticket created...',
    54                            self.browser.contents)
    55         ctrl = self.browser.getControl(name='val_id')
    56         value = ctrl.options[0]
    57         self.browser.getLink(value).click()
    58         self.assertMatches('...Amount Authorized...',
    59                            self.browser.contents)
    60         self.assertMatches(
    61             '...<span>12495.0</span>...',
    62             self.browser.contents)
    63         self.payment_url = self.browser.url
    6453
    6554
     
    7665
    7766    def test_interswitch_form(self):
     67
     68        # In the setup method we created the ticket
     69        self.assertMatches('...ticket created...',
     70                           self.browser.contents)
     71        ctrl = self.browser.getControl(name='val_id')
     72        value = ctrl.options[0]
     73        self.browser.getLink(value).click()
     74        self.assertMatches('...Amount Authorized...',
     75                           self.browser.contents)
     76        self.assertMatches(
     77            '...<span>12495.0</span>...',
     78            self.browser.contents)
     79        self.payment_url = self.browser.url
    7880
    7981        # Manager can access InterswitchForm
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/utils.py

    r9366 r9370  
    204204                p_session, p_level = self.getReturningData(student)
    205205
     206
     207            amount = 0.0
     208
    206209        if amount in (0.0, None):
    207210            return _(u'Amount could not be determined.'), None
Note: See TracChangeset for help on using the changeset viewer.