Fixed CQ for tests.core module

This commit is contained in:
navjot 2020-11-09 21:29:57 +05:30
parent a9e9f25b5d
commit 5eff9d6a04
No known key found for this signature in database
GPG Key ID: 9EE70AFD71357F1C

View File

@ -249,21 +249,21 @@ class TestCore(unittest.TestCase):
encoding = 2 encoding = 2
result = helper_sent.insert( result = helper_sent.insert(
'', # msgid '', # msgid
toAddress, toAddress,
'', # ripe '', # ripe
fromAddress, fromAddress,
subject, subject,
message, message,
'', # ackdata '', # ackdata
int(time.time()), # sentTime int(time.time()), # sentTime
int(time.time()), # lastActionTime int(time.time()), # lastActionTime
0, # sleeptill 0, # sleeptill
'msgqueued', 'msgqueued',
0, 0,
'sent', 'sent',
encoding, encoding,
0, 0,
True) True)
self.assertNotEqual(result[0], '') self.assertNotEqual(result[0], '')
def test_defalut_insert_values(self): def test_defalut_insert_values(self):
@ -274,20 +274,21 @@ class TestCore(unittest.TestCase):
subject = 'test subject' subject = 'test subject'
result = helper_sent.insert( result = helper_sent.insert(
'', # msgid '', # msgid
toAddress, toAddress,
'', # ripe '', # ripe
fromAddress, fromAddress,
subject, subject,
message, message,
'', # ackdata '', # ackdata
'', # sentTime '', # sentTime
'', # lastActionTime '', # lastActionTime
'', # sleeptill '', # sleeptill
'', # status '', # status
'', # retryNumber '', # retryNumber
'', # folder '', # folder
'', # encoding '', # encoding
'', True) '',
True)
for index in [0, 2, 6, 7, 8, 9, 10, 11, 12, 13, 14]: for index in [0, 2, 6, 7, 8, 9, 10, 11, 12, 13, 14]:
self.assertNotEqual(result[index], '') self.assertNotEqual(result[index], '')