We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13e6a87 commit f25648fCopy full SHA for f25648f
openwisp_users/tests/test_models.py
@@ -428,7 +428,7 @@ def test_password_expiration_mail(self):
428
password_updated=user_expiry_date
429
)
430
password_expiration_email.delay()
431
- formatted_expiry_date = (now() + timedelta(days=7)).strftime('%d %b %Y')
+ formatted_expiry_date = (now() + timedelta(days=7)).strftime('%-d %b %Y')
432
self.assertEqual(len(mail.outbox), 1)
433
email = mail.outbox.pop()
434
self.assertEqual(email.to, [verified_email_user.email])
0 commit comments