From 7c51c6a9ea1866ab9e19ed8a60fef235fa716782 Mon Sep 17 00:00:00 2001 From: kamaljohnson Date: Mon, 7 Feb 2022 18:25:36 +0530 Subject: [PATCH] fix: add in_test parameter from frappe.local.flags.in_test mock --- frappe/email/doctype/email_account/test_email_account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/email/doctype/email_account/test_email_account.py b/frappe/email/doctype/email_account/test_email_account.py index c53f8fa1ab..46cc3d03af 100644 --- a/frappe/email/doctype/email_account/test_email_account.py +++ b/frappe/email/doctype/email_account/test_email_account.py @@ -309,7 +309,7 @@ class TestEmailAccount(unittest.TestCase): @patch("frappe.local.flags.in_test", False) @patch("frappe.email.receive.EmailServer.select_imap_folder", return_value=True) @patch("frappe.email.receive.EmailServer.logout", side_effect=lambda: None) - def mocked_get_inbound_mails(email_account, messages={}, mocked_logout=None, mocked_select_imap_folder=None): + def mocked_get_inbound_mails(email_account, messages={}, mocked_logout=None, mocked_select_imap_folder=None, mocked_in_test=None): from frappe.email.receive import EmailServer def get_mocked_messages(**kwargs):