diff options
author | Denis Costa <deniscostadsc@gmail.com> | 2017-04-19 16:52:02 -0300 |
---|---|---|
committer | Denis Costa <deniscostadsc@gmail.com> | 2017-04-19 16:52:02 -0300 |
commit | d2c13c6f8535418b7c90d1f0d75fe88b2c68dd85 (patch) | |
tree | eb8732c1160525cfca39d602718fbfb63be3a1ac /service/test/unit | |
parent | a3763301042c5db0231b0e9e2d4a62d41d374d49 (diff) |
[#927] Removes recovery url from email
@anikarni
Diffstat (limited to 'service/test/unit')
-rw-r--r-- | service/test/unit/test_account_recovery.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/service/test/unit/test_account_recovery.py b/service/test/unit/test_account_recovery.py index cb5ed520..e9979fae 100644 --- a/service/test/unit/test_account_recovery.py +++ b/service/test/unit/test_account_recovery.py @@ -94,8 +94,8 @@ class AccountRecoveryTest(unittest.TestCase): mock_formatdate.return_value = 'Sat, 21 Mar 2015 19:30:09 -0300' sender = 'team@{}'.format(self.domain) - mock_file_content = '{backup_email}, {sender}, {date}, {domain}, {recovery_code}, {account_recovery_url}' - recovery_code_email = '\ntest@test.com, team@test.com, Sat, 21 Mar 2015 19:30:09 -0300, test.com, 34363435613266383939376535643064, test.com/account-recovery' + mock_file_content = '{backup_email}, {sender}, {date}, {domain}, {recovery_code}' + recovery_code_email = '\ntest@test.com, team@test.com, Sat, 21 Mar 2015 19:30:09 -0300, test.com, 34363435613266383939376535643064' with patch('pixelated.account_recovery.open', mock_open(read_data=mock_file_content), create=True): yield self.account_recovery._send_mail(self.generated_code, self.backup_email) |