Changeset 13241
- Timestamp:
- 4 Sep 2015, 15:00:11 (9 years ago)
- 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 2003 2003 self.redirect(self.url(self.context)) 2004 2004 return 2005 if not acc_details :2005 if not acc_details.get('bt'): 2006 2006 self.flash(_("Your data are incomplete."), type="warning") 2007 2007 self.redirect(self.url(self.context)) -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r13164 r13241 3008 3008 self.browser.contents) 3009 3009 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 3010 3016 # ... or student is not the an allowed state ... 3011 3017 self.browser.getLink("Book accommodation").click()
Note: See TracChangeset for help on using the changeset viewer.