stages/email: update tests

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer 2023-01-23 10:43:49 +01:00
parent 4731ccfafe
commit 1ce2a1b846
No known key found for this signature in database
12 changed files with 29 additions and 16 deletions

View File

@ -62,9 +62,7 @@ class TestEmailStage(FlowTestCase):
self.assertEqual(response.status_code, 200) self.assertEqual(response.status_code, 200)
self.assertEqual(len(mail.outbox), 1) self.assertEqual(len(mail.outbox), 1)
self.assertEqual(mail.outbox[0].subject, "authentik") self.assertEqual(mail.outbox[0].subject, "authentik")
self.assertNotIn( self.assertNotIn("Password Reset", mail.outbox[0].alternatives[0][0])
"You recently requested to change your password", mail.outbox[0].alternatives[0][0]
)
def test_without_user(self): def test_without_user(self):
"""Test without pending user""" """Test without pending user"""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-01-19 11:06+0000\n" "POT-Creation-Date: 2023-01-23 09:41+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -1466,30 +1466,35 @@ msgstr ""
msgid "Optionally modify the payload being sent to custom providers." msgid "Optionally modify the payload being sent to custom providers."
msgstr "" msgstr ""
#: authentik/stages/authenticator_sms/models.py:176 #: authentik/stages/authenticator_sms/models.py:81
#, python-format
msgid "Use this code to authenticate in authentik: %(token)s"
msgstr ""
#: authentik/stages/authenticator_sms/models.py:181
msgid "SMS Authenticator Setup Stage" msgid "SMS Authenticator Setup Stage"
msgstr "" msgstr ""
#: authentik/stages/authenticator_sms/models.py:177 #: authentik/stages/authenticator_sms/models.py:182
msgid "SMS Authenticator Setup Stages" msgid "SMS Authenticator Setup Stages"
msgstr "" msgstr ""
#: authentik/stages/authenticator_sms/models.py:222 #: authentik/stages/authenticator_sms/models.py:227
msgid "SMS Device" msgid "SMS Device"
msgstr "" msgstr ""
#: authentik/stages/authenticator_sms/models.py:223 #: authentik/stages/authenticator_sms/models.py:228
msgid "SMS Devices" msgid "SMS Devices"
msgstr "" msgstr ""
#: authentik/stages/authenticator_sms/stage.py:56 #: authentik/stages/authenticator_sms/stage.py:55
msgid "Invalid phone number" #: authentik/stages/authenticator_totp/stage.py:42
#: authentik/stages/authenticator_totp/stage.py:45
msgid "Code does not match"
msgstr "" msgstr ""
#: authentik/stages/authenticator_sms/stage.py:61 #: authentik/stages/authenticator_sms/stage.py:71
#: authentik/stages/authenticator_totp/stage.py:41 msgid "Invalid phone number"
#: authentik/stages/authenticator_totp/stage.py:44
msgid "Code does not match"
msgstr "" msgstr ""
#: authentik/stages/authenticator_static/models.py:47 #: authentik/stages/authenticator_static/models.py:47
@ -1700,7 +1705,7 @@ msgstr ""
#: authentik/stages/email/templates/email/password_reset.html:19 #: authentik/stages/email/templates/email/password_reset.html:19
msgid "" msgid ""
"\n" "\n"
" You recently requested to change your password for you " " You recently requested to change your password for your "
"authentik account. Use the button below to set a new password.\n" "authentik account. Use the button below to set a new password.\n"
" " " "
msgstr "" msgstr ""
@ -1800,7 +1805,7 @@ msgstr ""
msgid "Invitations" msgid "Invitations"
msgstr "" msgstr ""
#: authentik/stages/invitation/stage.py:61 #: authentik/stages/invitation/stage.py:66
msgid "Invalid invite/invite not found" msgid "Invalid invite/invite not found"
msgstr "" msgstr ""

View File

@ -2366,6 +2366,7 @@ msgstr ""
#: src/admin/events/EventInfo.ts #: src/admin/events/EventInfo.ts
#: src/admin/events/EventInfo.ts #: src/admin/events/EventInfo.ts
#: src/admin/events/EventInfo.ts #: src/admin/events/EventInfo.ts
#: src/admin/events/EventInfo.ts
msgid "Exception" msgid "Exception"
msgstr "Ausnahme" msgstr "Ausnahme"

View File

@ -2398,6 +2398,7 @@ msgstr "Example SAML attributes"
#: src/admin/events/EventInfo.ts #: src/admin/events/EventInfo.ts
#: src/admin/events/EventInfo.ts #: src/admin/events/EventInfo.ts
#: src/admin/events/EventInfo.ts #: src/admin/events/EventInfo.ts
#: src/admin/events/EventInfo.ts
msgid "Exception" msgid "Exception"
msgstr "Exception" msgstr "Exception"

View File

@ -2342,6 +2342,7 @@ msgstr ""
#: src/admin/events/EventInfo.ts #: src/admin/events/EventInfo.ts
#: src/admin/events/EventInfo.ts #: src/admin/events/EventInfo.ts
#: src/admin/events/EventInfo.ts #: src/admin/events/EventInfo.ts
#: src/admin/events/EventInfo.ts
msgid "Exception" msgid "Exception"
msgstr "Excepción" msgstr "Excepción"

View File

@ -2345,6 +2345,7 @@ msgstr ""
#: src/admin/events/EventInfo.ts #: src/admin/events/EventInfo.ts
#: src/admin/events/EventInfo.ts #: src/admin/events/EventInfo.ts
#: src/admin/events/EventInfo.ts #: src/admin/events/EventInfo.ts
#: src/admin/events/EventInfo.ts
msgid "Exception" msgid "Exception"
msgstr "Exception" msgstr "Exception"

View File

@ -2348,6 +2348,7 @@ msgstr ""
#: src/admin/events/EventInfo.ts #: src/admin/events/EventInfo.ts
#: src/admin/events/EventInfo.ts #: src/admin/events/EventInfo.ts
#: src/admin/events/EventInfo.ts #: src/admin/events/EventInfo.ts
#: src/admin/events/EventInfo.ts
msgid "Exception" msgid "Exception"
msgstr "Wyjątek" msgstr "Wyjątek"

View File

@ -2384,6 +2384,7 @@ msgstr ""
#: src/admin/events/EventInfo.ts #: src/admin/events/EventInfo.ts
#: src/admin/events/EventInfo.ts #: src/admin/events/EventInfo.ts
#: src/admin/events/EventInfo.ts #: src/admin/events/EventInfo.ts
#: src/admin/events/EventInfo.ts
msgid "Exception" msgid "Exception"
msgstr "" msgstr ""

View File

@ -2342,6 +2342,7 @@ msgstr ""
#: src/admin/events/EventInfo.ts #: src/admin/events/EventInfo.ts
#: src/admin/events/EventInfo.ts #: src/admin/events/EventInfo.ts
#: src/admin/events/EventInfo.ts #: src/admin/events/EventInfo.ts
#: src/admin/events/EventInfo.ts
msgid "Exception" msgid "Exception"
msgstr "Hata" msgstr "Hata"

View File

@ -2350,6 +2350,7 @@ msgstr ""
#: src/admin/events/EventInfo.ts #: src/admin/events/EventInfo.ts
#: src/admin/events/EventInfo.ts #: src/admin/events/EventInfo.ts
#: src/admin/events/EventInfo.ts #: src/admin/events/EventInfo.ts
#: src/admin/events/EventInfo.ts
msgid "Exception" msgid "Exception"
msgstr "异常" msgstr "异常"

View File

@ -2350,6 +2350,7 @@ msgstr ""
#: src/admin/events/EventInfo.ts #: src/admin/events/EventInfo.ts
#: src/admin/events/EventInfo.ts #: src/admin/events/EventInfo.ts
#: src/admin/events/EventInfo.ts #: src/admin/events/EventInfo.ts
#: src/admin/events/EventInfo.ts
msgid "Exception" msgid "Exception"
msgstr "例外" msgstr "例外"

View File

@ -2350,6 +2350,7 @@ msgstr ""
#: src/admin/events/EventInfo.ts #: src/admin/events/EventInfo.ts
#: src/admin/events/EventInfo.ts #: src/admin/events/EventInfo.ts
#: src/admin/events/EventInfo.ts #: src/admin/events/EventInfo.ts
#: src/admin/events/EventInfo.ts
msgid "Exception" msgid "Exception"
msgstr "例外" msgstr "例外"