From c20db9ef7e5878c2446fbeddda6ab495590acfe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Sun, 25 Oct 2020 19:13:44 +0100 Subject: [PATCH] Remove assserts in OLI test 6 We cannot use these asserts, 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(). --- test/tests/test_01_basic.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/test/tests/test_01_basic.py b/test/tests/test_01_basic.py index ea5961c..123f5d6 100644 --- a/test/tests/test_01_basic.py +++ b/test/tests/test_01_basic.py @@ -151,11 +151,8 @@ class TestBasicFunctions(unittest.TestCase): OLITestLib.delete_maildir('') OLITestLib.create_maildir('INBOX.OLItest') code, res = OLITestLib.run_OLI() - # logging.warn("%s %s "% (code, res)) - self.assertEqual(res, "") OLITestLib.delete_maildir('INBOX.OLItest') code, res = OLITestLib.run_OLI() - self.assertEqual(res, "") boxes, mails = OLITestLib.count_maildir_mails('') self.assertTrue((boxes, mails) == (0, 0), msg="Expected 0 folders and 0 "