test: folder separator could be dot or slash
Signed-off-by: Pierre-Louis Bonicoli <pierre-louis.bonicoli@gmx.fr> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
1cdf34e100
commit
afcd640035
@ -159,7 +159,7 @@ class OLITestLib():
|
||||
#folder = folder.replace(br'\"', b'"') # remove quoting
|
||||
dirs.append(folder)
|
||||
# 2) filter out those not starting with INBOX.OLItest and del...
|
||||
dirs = [d for d in dirs if d.startswith(b'INBOX.OLItest')]
|
||||
dirs = [d for d in dirs if d.startswith(b'INBOX.OLItest') or d.startswith(b'INBOX/OLItest')]
|
||||
for folder in dirs:
|
||||
res_t, data = imapobj.delete(b'\"'+folder+b'\"')
|
||||
assert res_t == 'OK', "Folder deletion of {0} failed with error"\
|
||||
|
@ -38,5 +38,5 @@ localfolders =
|
||||
type=IMAP
|
||||
# Don't hammer the server with too many connection attempts:
|
||||
maxconnections=1
|
||||
folderfilter= lambda f: f.startswith('INBOX.OLItest')
|
||||
folderfilter= lambda f: f.startswith('INBOX.OLItest') or f.startswith('INBOX/OLItest')
|
||||
""")
|
||||
|
Loading…
Reference in New Issue
Block a user