From 2b2994d68ec82bc2a8bcc972fe865b6483611f0a 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:11:56 +0100 Subject: [PATCH] Remove asssert in OLI test 3 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(). --- test/tests/test_01_basic.py | 1 - 1 file changed, 1 deletion(-) diff --git a/test/tests/test_01_basic.py b/test/tests/test_01_basic.py index 944fbb2..ea5961c 100644 --- a/test/tests/test_01_basic.py +++ b/test/tests/test_01_basic.py @@ -81,7 +81,6 @@ class TestBasicFunctions(unittest.TestCase): code, res = OLITestLib.run_OLI() if 'unallowed folder' in res: raise unittest.SkipTest("remote server doesn't handle quote") - self.assertEqual(res, "") boxes, mails = OLITestLib.count_maildir_mails('') self.assertTrue((boxes, mails) == (1, 0), msg="Expected 1 folders and 0 "