Ignore:
Timestamp:
13 Nov 2014, 13:21:59 (10 years ago)
Author:
Henrik Bettermann
Message:

Enucleation. Keep only the portal's framework. Remove university, students, applicants, hostels and accesscodes modules.

Location:
main/waeup.kofa/branches/henrik-regista/src/waeup/kofa/mandates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/henrik-regista/src/waeup/kofa/mandates/container.py

    r8910 r11947  
    5656    def setup(self, site, name, logger):
    5757        if 'mandates' in site.keys():
    58             logger.warn('Could not create container for faculties in Kofa.')
     58            logger.warn('Could not create container for mandates in Kofa.')
    5959            return
    6060        site['mandates'] = MandatesContainer()
  • main/waeup.kofa/branches/henrik-regista/src/waeup/kofa/mandates/tests.py

    r11681 r11947  
    8585        shutil.rmtree(self.dc_root)
    8686
    87     def test_set_student_password(self):
     87    def xx_test_set_student_password(self):
    8888        student = createObject('waeup.Student')
    8989        # Add and execute a mandate with missing parameters.
     
    129129        self.assertTrue('system - PasswordMandate used: bob' in logcontent)
    130130
    131     def test_set_applicant_password(self):
    132         applicant = createObject('waeup.Applicant')
    133         applicant.applicant_id = u'abc'
    134         mandate = PasswordMandate()
    135         mandate.params['user'] = applicant
    136         mandate.params['password'] = 'mypwd1'
    137         self.app['mandates'].addMandate(mandate)
    138         msg = mandate.execute()
    139         # Password has been set.
    140         self.assertEqual(msg, 'Password has been successfully set. Login with your new password.')
    141         self.assertTrue(IUserAccount(applicant).checkPassword('mypwd1'))
    142         logfile = os.path.join(
    143             self.app['datacenter'].storage, 'logs', 'main.log')
    144         logcontent = open(logfile).read()
    145         self.assertTrue('system - PasswordMandate used: abc' in logcontent)
    146 
    147131    def test_remove_expired(self):
    148132        # mandate1 is an old mandate which just expired.
     
    159143        self.assertEqual([i for i in self.app['mandates'].keys()], [u'23456'])
    160144
    161     def test_browser(self):
     145    def xx_test_browser(self):
    162146        student = createObject('waeup.Student')
    163147        self.app['students'].addStudent(student)
Note: See TracChangeset for help on using the changeset viewer.