Changeset 13241 for main


Ignore:
Timestamp:
4 Sep 2015, 15:00:11 (9 years ago)
Author:
Henrik Bettermann
Message:

acc_details are never None.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students
Files:
2 edited

Legend:

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

    r13201 r13241  
    20032003            self.redirect(self.url(self.context))
    20042004            return
    2005         if not acc_details:
     2005        if not acc_details.get('bt'):
    20062006            self.flash(_("Your data are incomplete."), type="warning")
    20072007            self.redirect(self.url(self.context))
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r13164 r13241  
    30083008                           self.browser.contents)
    30093009        self.app['hostels'].enddate = datetime.now(pytz.utc) + timedelta(days=10)
     3010        # ... or student data are incomplete ...
     3011        self.student['studycourse'].current_level = None
     3012        self.browser.getLink("Book accommodation").click()
     3013        self.assertMatches('...Your data are incomplete...',
     3014            self.browser.contents)
     3015        self.student['studycourse'].current_level = 100
    30103016        # ... or student is not the an allowed state ...
    30113017        self.browser.getLink("Book accommodation").click()
Note: See TracChangeset for help on using the changeset viewer.