mirror of
https://github.com/bringout/oca-ocb-security.git
synced 2026-04-23 09:32:03 +02:00
19.0 vanilla
This commit is contained in:
parent
20ddc1b4a3
commit
c0efcc53f5
1162 changed files with 125577 additions and 105287 deletions
|
|
@ -11,7 +11,7 @@ from odoo.tests.common import TransactionCase
|
|||
|
||||
class TestFetchmailOutlook(TransactionCase):
|
||||
|
||||
@patch('odoo.addons.mail.models.fetchmail.IMAP4_SSL')
|
||||
@patch('odoo.addons.mail.models.fetchmail.OdooIMAP4_SSL')
|
||||
def test_connect(self, mock_imap):
|
||||
"""Test that the connect method will use the right
|
||||
authentication method with the right arguments.
|
||||
|
|
@ -29,7 +29,7 @@ class TestFetchmailOutlook(TransactionCase):
|
|||
'is_ssl': True,
|
||||
})
|
||||
|
||||
mail_server.connect()
|
||||
mail_server._connect__()
|
||||
|
||||
mock_connection.authenticate.assert_called_once_with('XOAUTH2', ANY)
|
||||
args = mock_connection.authenticate.call_args[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue