|
@@ -28,7 +28,7 @@ class LostPasswordTest(TestCase):
|
|
|
password_hash = LostPasswordHash.objects.create(user=self.user)
|
|
|
|
|
|
with self.options({"system.url-prefix": "http://testserver"}), self.tasks():
|
|
|
- LostPasswordHash.send_relocate_account_email(self.user, password_hash.hash)
|
|
|
+ LostPasswordHash.send_relocate_account_email(self.user, password_hash.hash, ["testorg"])
|
|
|
|
|
|
assert len(mail.outbox) == 1
|
|
|
msg = mail.outbox[0]
|
|
@@ -41,6 +41,6 @@ class LostPasswordTest(TestCase):
|
|
|
args=[password_hash.user_id, password_hash.hash],
|
|
|
)
|
|
|
assert msg.body.startswith(
|
|
|
- "The following Sentry organizations that you are a member of have been migrated onto sentry.io:\n\n\nTo continue with using these accounts at their new location, please claim your account with sentry.io.\n\nClaim Account"
|
|
|
+ "The following Sentry organizations that you are a member of have been migrated onto sentry.io:\n\n* testorg\n\n\nTo continue with using these accounts at their new location, please claim your account with sentry.io.\n\nClaim Account"
|
|
|
)
|
|
|
assert url in msg.body
|