Update test_mail.py
This commit is contained in:
parent
4924cdd7fa
commit
63e0eac4cb
@ -1612,7 +1612,7 @@ class TestMailAccountTestView(APITestCase):
|
|||||||
def get_mailbox(server, port, security):
|
def get_mailbox(server, port, security):
|
||||||
return mock.MagicMock()
|
return mock.MagicMock()
|
||||||
|
|
||||||
mock_get_mailbox.__enter__.return_value = get_mailbox
|
mock_get_mailbox.return_value.__enter__.return_value = get_mailbox
|
||||||
|
|
||||||
def mock_mailbox_login(mailbox, account):
|
def mock_mailbox_login(mailbox, account):
|
||||||
return True
|
return True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user