Ignore:
Timestamp:
21 Dec 2012, 08:51:44 (12 years ago)
Author:
Henrik Bettermann
Message:

Add clearance_enabled field to ISessionConfiguration. Clearance can now be disabled for certain sessions via this switch.

File:
1 edited

Legend:

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

    r9812 r9814  
    12671267        self.assertRaises(
    12681268            Unauthorized, self.browser.open, other_student_path)
     1269        # Clearance is disabled for this session
     1270        self.browser.open(self.clearance_path)
     1271        self.assertFalse('Clear student' in self.browser.contents)
     1272        self.browser.open(self.student_path + '/clear')
     1273        self.assertTrue('Clearance is disabled for this session'
     1274            in self.browser.contents)
     1275        self.app['configuration']['2004'].clearance_enabled = True
    12691276        # Only in state clearance requested the CO does see the 'Clear' button
    12701277        self.browser.open(self.clearance_path)
Note: See TracChangeset for help on using the changeset viewer.