Removed not used variables returned by run_OLI
These variables are not used in these functions, we can remove them.
This commit is contained in:
parent
c20db9ef7e
commit
70bf1c74c4
@ -53,7 +53,7 @@ class TestBasicFunctions(unittest.TestCase):
|
|||||||
Cleans existing remote test folders. Then syncs all "OLItest*
|
Cleans existing remote test folders. Then syncs all "OLItest*
|
||||||
(specified in the default config) to our local Maildir. The
|
(specified in the default config) to our local Maildir. The
|
||||||
result should be 0 folders and 0 mails."""
|
result should be 0 folders and 0 mails."""
|
||||||
code, res = OLITestLib.run_OLI()
|
OLITestLib.run_OLI()
|
||||||
boxes, mails = OLITestLib.count_maildir_mails('')
|
boxes, mails = OLITestLib.count_maildir_mails('')
|
||||||
self.assertTrue((boxes, mails) == (0, 0),
|
self.assertTrue((boxes, mails) == (0, 0),
|
||||||
msg="Expected 0 folders and 0 "
|
msg="Expected 0 folders and 0 "
|
||||||
@ -64,7 +64,7 @@ class TestBasicFunctions(unittest.TestCase):
|
|||||||
"""Create local 'OLItest 1', sync"""
|
"""Create local 'OLItest 1', sync"""
|
||||||
OLITestLib.delete_maildir('') # Delete all local maildir folders
|
OLITestLib.delete_maildir('') # Delete all local maildir folders
|
||||||
OLITestLib.create_maildir('INBOX.OLItest 1')
|
OLITestLib.create_maildir('INBOX.OLItest 1')
|
||||||
code, res = OLITestLib.run_OLI()
|
OLITestLib.run_OLI()
|
||||||
boxes, mails = OLITestLib.count_maildir_mails('')
|
boxes, mails = OLITestLib.count_maildir_mails('')
|
||||||
self.assertTrue((boxes, mails) == (1, 0),
|
self.assertTrue((boxes, mails) == (1, 0),
|
||||||
msg="Expected 1 folders and 0 "
|
msg="Expected 1 folders and 0 "
|
||||||
@ -78,7 +78,7 @@ class TestBasicFunctions(unittest.TestCase):
|
|||||||
one is included here as a small challenge."""
|
one is included here as a small challenge."""
|
||||||
OLITestLib.delete_maildir('') # Delete all local maildir folders
|
OLITestLib.delete_maildir('') # Delete all local maildir folders
|
||||||
OLITestLib.create_maildir('INBOX.OLItest "1"')
|
OLITestLib.create_maildir('INBOX.OLItest "1"')
|
||||||
code, res = OLITestLib.run_OLI()
|
code, res = OLITestLib.run_OLI()
|
||||||
if 'unallowed folder' in res:
|
if 'unallowed folder' in res:
|
||||||
raise unittest.SkipTest("remote server doesn't handle quote")
|
raise unittest.SkipTest("remote server doesn't handle quote")
|
||||||
boxes, mails = OLITestLib.count_maildir_mails('')
|
boxes, mails = OLITestLib.count_maildir_mails('')
|
||||||
@ -150,9 +150,9 @@ class TestBasicFunctions(unittest.TestCase):
|
|||||||
OLITestLib.delete_remote_testfolders()
|
OLITestLib.delete_remote_testfolders()
|
||||||
OLITestLib.delete_maildir('')
|
OLITestLib.delete_maildir('')
|
||||||
OLITestLib.create_maildir('INBOX.OLItest')
|
OLITestLib.create_maildir('INBOX.OLItest')
|
||||||
code, res = OLITestLib.run_OLI()
|
OLITestLib.run_OLI()
|
||||||
OLITestLib.delete_maildir('INBOX.OLItest')
|
OLITestLib.delete_maildir('INBOX.OLItest')
|
||||||
code, res = OLITestLib.run_OLI()
|
OLITestLib.run_OLI()
|
||||||
boxes, mails = OLITestLib.count_maildir_mails('')
|
boxes, mails = OLITestLib.count_maildir_mails('')
|
||||||
self.assertTrue((boxes, mails) == (0, 0),
|
self.assertTrue((boxes, mails) == (0, 0),
|
||||||
msg="Expected 0 folders and 0 "
|
msg="Expected 0 folders and 0 "
|
||||||
|
Loading…
Reference in New Issue
Block a user