File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -393,10 +393,10 @@ def test_has_password_expired(self):
393
393
@patch .object (app_settings , 'USER_PASSWORD_EXPIRATION' , 30 )
394
394
@patch .object (app_settings , 'STAFF_USER_PASSWORD_EXPIRATION' , 90 )
395
395
def test_password_expiration_mail (self ):
396
- user_expiry_date = now ().today () - timedelta (
396
+ user_expiry_date = now ().date () - timedelta (
397
397
days = (app_settings .USER_PASSWORD_EXPIRATION - 7 )
398
398
)
399
- staff_user_expiry_date = now ().today () - timedelta (
399
+ staff_user_expiry_date = now ().date () - timedelta (
400
400
days = (app_settings .STAFF_USER_PASSWORD_EXPIRATION - 7 )
401
401
)
402
402
staff_user = self ._create_operator ()
@@ -459,7 +459,7 @@ def test_password_expiration_mail(self):
459
459
@patch .object (app_settings , 'USER_PASSWORD_EXPIRATION' , 30 )
460
460
@patch ('openwisp_users.tasks.sleep' )
461
461
def test_password_expiration_mail_sleep (self , mocked_sleep ):
462
- user_expiry_date = now ().today () - timedelta (
462
+ user_expiry_date = now ().date () - timedelta (
463
463
days = (app_settings .USER_PASSWORD_EXPIRATION - 7 )
464
464
)
465
465
for i in range (10 ):
You can’t perform that action at this time.
0 commit comments