From 5eff9d6a04f2820183e6766a8106b4e20558893f Mon Sep 17 00:00:00 2001 From: navjot Date: Mon, 9 Nov 2020 21:29:57 +0530 Subject: [PATCH] Fixed CQ for tests.core module --- src/tests/core.py | 59 ++++++++++++++++++++++++----------------------- 1 file changed, 30 insertions(+), 29 deletions(-) diff --git a/src/tests/core.py b/src/tests/core.py index 1ebfb734..e060c005 100644 --- a/src/tests/core.py +++ b/src/tests/core.py @@ -249,21 +249,21 @@ class TestCore(unittest.TestCase): encoding = 2 result = helper_sent.insert( '', # msgid - toAddress, - '', # ripe - fromAddress, - subject, - message, - '', # ackdata - int(time.time()), # sentTime - int(time.time()), # lastActionTime - 0, # sleeptill - 'msgqueued', - 0, - 'sent', - encoding, - 0, - True) + toAddress, + '', # ripe + fromAddress, + subject, + message, + '', # ackdata + int(time.time()), # sentTime + int(time.time()), # lastActionTime + 0, # sleeptill + 'msgqueued', + 0, + 'sent', + encoding, + 0, + True) self.assertNotEqual(result[0], '') def test_defalut_insert_values(self): @@ -274,20 +274,21 @@ class TestCore(unittest.TestCase): subject = 'test subject' result = helper_sent.insert( '', # msgid - toAddress, - '', # ripe - fromAddress, - subject, - message, - '', # ackdata - '', # sentTime - '', # lastActionTime - '', # sleeptill - '', # status - '', # retryNumber - '', # folder - '', # encoding - '', True) + toAddress, + '', # ripe + fromAddress, + subject, + message, + '', # ackdata + '', # sentTime + '', # lastActionTime + '', # sleeptill + '', # status + '', # retryNumber + '', # folder + '', # encoding + '', + True) for index in [0, 2, 6, 7, 8, 9, 10, 11, 12, 13, 14]: self.assertNotEqual(result[index], '')