Skip to content

Commit f25648f

Browse files
authored
[fix] Fixed date formatting in test_password_expiration_mail #367
Related to #367
1 parent 13e6a87 commit f25648f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openwisp_users/tests/test_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ def test_password_expiration_mail(self):
428428
password_updated=user_expiry_date
429429
)
430430
password_expiration_email.delay()
431-
formatted_expiry_date = (now() + timedelta(days=7)).strftime('%d %b %Y')
431+
formatted_expiry_date = (now() + timedelta(days=7)).strftime('%-d %b %Y')
432432
self.assertEqual(len(mail.outbox), 1)
433433
email = mail.outbox.pop()
434434
self.assertEqual(email.to, [verified_email_user.email])

0 commit comments

Comments
 (0)