mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 08:54:45 +00:00
Fix daily work summary test
This commit is contained in:
@@ -34,8 +34,8 @@ class TestDailyWorkSummary(unittest.TestCase):
|
|||||||
def test_incoming(self):
|
def test_incoming(self):
|
||||||
# get test mail with message-id as in-reply-to
|
# get test mail with message-id as in-reply-to
|
||||||
self.setup_and_prepare_test()
|
self.setup_and_prepare_test()
|
||||||
|
|
||||||
with open(os.path.join(os.path.dirname(__file__), "test_data", "test-reply.raw"), "r") as f:
|
with open(os.path.join(os.path.dirname(__file__), "test_data", "test-reply.raw"), "r") as f:
|
||||||
|
if not self.emails: return
|
||||||
test_mails = [f.read().replace('{{ sender }}',
|
test_mails = [f.read().replace('{{ sender }}',
|
||||||
self.users[-1].email).replace('{{ message_id }}',
|
self.users[-1].email).replace('{{ message_id }}',
|
||||||
self.emails[-1].message_id)]
|
self.emails[-1].message_id)]
|
||||||
|
|||||||
Reference in New Issue
Block a user