From cffce77dbc126b1678f9a754b3e1a3663a323c33 Mon Sep 17 00:00:00 2001 From: Anike Arni Date: Thu, 20 Apr 2017 09:25:14 -0300 Subject: [#927] Calls the public method intead of private one on test with @deniscostadsc --- service/test/unit/test_account_recovery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'service') diff --git a/service/test/unit/test_account_recovery.py b/service/test/unit/test_account_recovery.py index e9979fae..4dc9621f 100644 --- a/service/test/unit/test_account_recovery.py +++ b/service/test/unit/test_account_recovery.py @@ -98,7 +98,7 @@ class AccountRecoveryTest(unittest.TestCase): 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) + yield self.account_recovery.update_recovery_code() mock_sendmail.assert_called_with( self.mock_smtp_config.remote_smtp_host, -- cgit v1.2.3