From 3231e731d89ef7175eab2a45ee8b80d28ac38ccb 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:03:11 +0100 Subject: [PATCH] Remove asssert in OLI test 1 We cannot use this assert, becasue the returned value of res is: ERROR: Account test: no folder to sync (f[388 chars]\n\n' != '' - ERROR: Account test: no folder to sync (folderfilter issue?) - ERROR: Exceptions occurred during the run! - ERROR: Account test: no folder to sync (folderfilter issue?) So, if we have an assert to test 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 bce481e..97c9723 100644 --- a/test/tests/test_01_basic.py +++ b/test/tests/test_01_basic.py @@ -54,7 +54,6 @@ class TestBasicFunctions(unittest.TestCase): (specified in the default config) to our local Maildir. The result should be 0 folders and 0 mails.""" 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 "