Ignore:
Timestamp:
29 Apr 2019, 16:33:50 (6 years ago)
Author:
Henrik Bettermann
Message:

Show different warming message if late course registration fee is not set.

File:
1 edited

Legend:

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

    r15388 r15398  
    655655        self.browser.getControl("Create ticket").click()
    656656        self.student['payments'].values()[0].approveStudentPayment()
    657         # Make late registration fee fee payment
     657        # Make late registration fee payment
    658658        self.student['studycourse'].current_session = 2004
    659659        self.browser.open(self.payments_path + '/addop')
     
    673673        self.browser.getLink("Edit course list").click()
    674674        self.assertFalse('<td>67</td>' in self.browser.contents)
     675        self.app['configuration']['2004'].late_registration_fee = 0.0
    675676        self.browser.getControl("Register course list").click()
    676 
    677         ######################################################
    678         # Temporarily disabled ug_ft course registration
    679         #self.assertTrue('Course registration has been disabled'
    680         #    in self.browser.contents)
    681         #return
    682         ######################################################
    683 
     677        self.assertTrue('Course registration has been disabled.' in self.browser.contents)
     678        self.app['configuration']['2004'].late_registration_fee = 345.0
     679        self.browser.getControl("Register course list").click()
    684680        self.assertTrue('Course registration has ended. Please pay' in self.browser.contents)
    685681        self.student['payments'].values()[1].approve()
Note: See TracChangeset for help on using the changeset viewer.