Ignore:
Timestamp:
3 Sep 2025, 07:38:18 (15 months ago)
Author:
Henrik Bettermann
Message:

Implement student password expiration feature.

File:
1 edited

Legend:

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

    r16550 r18166  
    133133        self.assertEqual(redirect_path, '/login?login=K1000000&password=mypwd1')
    134134        self.assertTrue(IUserAccount(student).checkPassword('mypwd1'))
     135        # Password update time has been set
     136        now = datetime.utcnow()
     137        self.assertEqual((now - student.password_updated).seconds, 0)
    135138        # All mandates have been removed.
    136139        self.assertEqual(len(self.app['mandates'].keys()), 0)
Note: See TracChangeset for help on using the changeset viewer.